-
Notifications
You must be signed in to change notification settings - Fork 0
Done
Sean Ryan edited this page Sep 20, 2019
·
7 revisions
add negative tests:
- 0 length string
docs:
- add
use xin example.
add missing features:
-
add is_an(word) -> bool
-
add numbers (read_numbers_literally)
-
add other
-
handle spaces (take first word), hyphenation
-
test more cases:
console.log(a('2')); // 'a 2'
console.log(a('8')); // 'an 8'
console.log(a('1892')); // 'a 1892' -> read "a one thousand eight hundred ninety-two"
console.log(a('1892', { numbers: 'colloquial' })); // 'an 1892' -> read "an eighteen ninety-two"
-
add docs (auto with rust?)
-
pub as crate -> cargo.io
-
add test harness to test cargo.io
-
br: handle mixed case. If all upper, assume acronym. Ugly -> An (not an)
-
refactor (see TODO in code)
-
review the original tests at https://github.com/tandrewnichols/indefinite/blob/master/test/indefinite.js