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.
A little pedantic, but: this will tell you if a poem is shaped like the common English conception of a haiku, but it won't tell you if this is a haiku, because a haiku is more than just counting syllables.
Aside from the fact that "syllables" is not exactly the unit being counted in haiku, there are also considerations of theme, tone, and a sort of "open-ended-ness" – among other considerations.
Super fun idea! That syllables package might not be robust enough for this purpose. Even in its documentation's super simple code samples, it estimates the word estimate wrong haha. I think that's somewhat meant to be an admission by the author that it is an estimate.
>>> import syllables
>>> syllables.estimate('estimate')
4
Doesn't matter in the context of making a fun web app though, cool idea!
Very cool! I like the interface. For anyone interested in this and similar ideas, haiku/senryū detection is a feature of this old project of mine: https://versepad.com
23 comments
[ 2.9 ms ] story [ 48.9 ms ] threadYou 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.
Nice and simple, very nice app.
Seems like a general problem with words ending in 'e'
I need one to test this app
Love the internet!
Aside from the fact that "syllables" is not exactly the unit being counted in haiku, there are also considerations of theme, tone, and a sort of "open-ended-ness" – among other considerations.
This article served as my introduction to the actual complexities of haiku: https://forgottenpoets.substack.com/p/haiku-thursdays-one-pl...
>>> import syllables
>>> syllables.estimate('estimate')
4
Doesn't matter in the context of making a fun web app though, cool idea!
need a season word (kigo).
It's true; look it up.
As long as you have some fun
Refrigerator
now my fingers are greasy
as i type this
Line 1
5 / 5
i(1) just(1) ate(1) bacon(2)
Line 2
7 / 7
now(1) my(1) fingers(2) are(1) greasy(2)
Line 3
5 / 5
as(1) i(1) type(2) this(1)
I might have greasy fingers but that ain't right
haiku is. can anyone
please explain it?
Blessed vs “bless-ed” for example
Camera can be said cam-ra or cam-er-a for example.
Hope that it validates
and smile when it does.
Edit: Little tools like this are nice. It's simple, it works, and it's just one of those little toys that people can use to have simple fun.
柿くへば
鐘が鳴るなり
法隆寺
Crunchy, like its fried contents
I ate the chip bag
But Validator works on sane languages too: