Crate wordsworth [−] [src]
A collection of useful natural language functions.
Usage
This crate is on crates.io and can be
used by adding wordsworth
to the dependencies in your project's Cargo.toml
.
[dependencies]
wordsworth = "0.1.*"
and this to your crate root:
extern crate wordsworth;
Example
use wordsworth; assert_eq!(3, wordsworth::syllable_counter("lucozade")); assert_eq!(false, wordsworth::is_haiku("this is not\nnot\n a haiku"));
Functions
is_haiku |
Returns a bool value for a haiku candidate |
syllable_counter |
Returns the syllable count for a word |