-
Notifications
You must be signed in to change notification settings - Fork 0
Done
-
combine derive:
#[derive(Copy, Clone)] -
adjust use of slice arrays
const BROWSERS: &[&str] = &["firefox", "chrome"];
-
add test whitespace only - > ""
-
add --no-confirm to publish.sh
-
split lib.rs
ref: https://github.com/rust-lang/regex/tree/master/src
- auto the release
https://crates.io/crates/cargo-release/0.11.2
- add change log
-
with benchmarktry simplify text processing code: use regexes more for detecting title case -
is current matching case behaviour actually covered by test? (check use of lower case)
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