Skip to content

turniej/triphthong

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Triphthong

Triphthong is a (currently, Polish-only) syllable counter and an (extremely poor) syllable splitter.

Usage

require 'triphthong'

text = Verse.new 'Litwo! Ojczyzno moja!'

text.syllable_count         #=> 7
text.has_caesura_after? 7   #=> true
text.rhyme_pattern          #=> 'oja'

To do

  • improve #rhyme_pattern to pass Pan Tadeusz test
  • add Balladyna, Beniowski, Monacho- and Antymonachomachia to fixtures
  • handle laur/laurka/laurowy syllable counts
  • update README with executable usage examples
  • add syllable splitter
  • support for other languages

© MMXI Piotr Szotkowski [email protected], licensed under AGPL 3 (see LICENCE)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published