Follow

@squirrel @loam ->s{s.scan(/[aiouy]+e*|e(?!d$|ly).|[td]ed|le$/).size} returns the amount of syllables in a word in ruby

@squirrel @loam honestly one might just need to pull in an entire nlp thing

@boots @loam @squirrel

a vague echo
arrests the rhythm of the lion,
the howl of the coyote

@squirrel @loam @boots
(I think there's a chance that they just maybe might have cut a few corners when code golfing.)

@gaditb @squirrel @loam honestly it seems to respect most of the rules ive seen posted around

@boots @squirrel @loam The biggest common one I see it failing is not accounting for 'y' as a consonant.

@loam @squirrel @boots Depending on what words you use regularly, the sometimes-vocalized final 'e' might be the next. (and the first one where, like, "okay I can't handle this with regexes".)

@gaditb @loam @squirrel resume has a different amount of syllables depending on if its a noun or a verb

@boots @loam @squirrel Maybe we should make it so that the computer checks every single post you make for syllables, but if you ACTUALLY DO toot a proper haiku and one of the admins notice, you get banned.

@boots @squirrel @loam those two combine to produce the "'coyote' is one syllable" thing, which I find hilarious.

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!