syllables 0.0.1 copy "syllables: ^0.0.1" to clipboard
syllables: ^0.0.1 copied to clipboard

outdatedDart 1 only

A Dart library for playing will syllables of English words.

Haiku #

Detect and create Haikus

Examples #

Detecting a haiku

final poem = '''
   This is my long poem. It is too long for haiku, because it's tail is quite large.
''';

final haikuPoem = '''
    An old silent pond... A frog jumps into the pond, splash! Silence again.
''';

print(Haiku.isHaiku(poem); // False; 19 syllables
print(Haiku.isHaiku(haikuPoem); // True

Creating a Haiku

final haiku = Haiku.create(haikuPoem);
print(haiku.firstLine); // ['An', 'old', 'silent', 'pond...'];
print(haiku.thirdLine); // ['splash!', 'Silence', 'again.'];

Printing a Haiku

print(const CitationFormatter('You').format(haiku));

//  *An old silent pond...
//  A frog jumps into the pond,
//  splash! Silence again.*
//      - You
0
likes
0
pub points
21%
popularity

Publisher

unverified uploader

A Dart library for playing will syllables of English words.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

packages

More

Packages that depend on syllables