Javascript numbers to words - vigesimal
I'd like to create a numbers to words converter such as this one http://gwydir.demon.co.uk/jo/numbers/words/intro.htm However I'm doing it for a foreign language that uses a vigesimal number system - counting in twenties. I'd like to start out with 1-199. 1-20 is easy, but after that it changes. 20-39 follows the pattern of 'one on twenty' (21), 'two on twenty' (22), up to 'eighteen on twenty' (38), 'nineteen on twenty' (39). 40-99 and 120-199 is different still, since it counts in scores: 'one and two twenty' (41), 'two and two twenty' (42), 'one and three twenty' (61), ten and three twenty