Hacker News new | ask | show | jobs
by mrstone 261 days ago
A little flask app to write and validate haikus. It's definitely not perfect and makes some mistakes. It uses the syllables python library to estimate how many syllables are in each word.

You can check the override list at https://haikuvalidator.com/overrides and if you have any suggestions feel free to let me know any words that are broken.

This is my first time making a web app. Hoping that someone finds it fun / useful.

5 comments

For this kind of use case it'd be interesting if it could use a dictionary that notes multiple pronunciations. E.g. for "fire" in that list there isn't necessarily a single correct answer https://www.britannica.com/dictionary/eb/qa/fire-one-syllabl...
"space" is counted as 2 syllables, should be 1

Seems like a general problem with words ending in 'e'

"Sometimes" and "sense" are both wrong. I don't think this library is very good
"wrote" came up as 2 syllables :(
close comes up as 2 syllables in the app, should be 1.

Nice and simple, very nice app.