-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest.js
23 lines (10 loc) · 1.14 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var natN=require('./lib/natural-number.js');
var natural_number=new natN({ lang:'en' })
var string= 'there are two hundred and fifty two cowna and fourteen goats. Negative twenty 4. She was the fifty second patient. What! Ksh1000! He was ranked 2nd. King Mwati LVIII is dead! And then there is 5GB of data on that hard drive. Are you 78% sure? TestDasherize&Decamelization. Last September there was a goat on the door. She needs 3 pints of blood urgently! President Moi was born in 5th january one thousand nine hundred and ninety four and will be forty four years old next week. Can you finish two liters of milk? :-) :\') :\'( . Wait he didnt call me that. IKR NKT ';
var string="200 his is an angry 💬 🔔 and then there is another ghoul in the house :-) :') :'("
var string="At the 22nd world travel awards kigali serena was awarded rwandas leading hotel serenawta long timelong timethe finest customer service";
string=' I am very ;-) IKR. number twenty two on 5th january one thousand nine hundred and ninety four'
// console.log(string+"\n\n\n")
natural_number.parse(string,false,function(parsed){
console.log(JSON.stringify(parsed,0,4))
})