Skip to content

alexruize/haiku_finder_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

haiku_finder_bot

This short script finds accidental haikus in Reddit's comments, and posts them as a reply.

It first generates a dictionary of syllables per word inferring the number of syllables from the phonemic structure of the word and its lexical stresses (using the Carnegie Mellon University's pronunciation dictionary).

It then retrieves the comments on Reddit's \r\all section as json data, searches for the 5-7-5 syllabic structure in full sentences, and accesses the Reddit API to post the properly formatted haiku as a reply to the original comment.

About

Python script that scans Reddit comments for full-sentence haikus, posting a reply with it. You can find the results on Reddit for /u/haiku_finder_bot. Posts are old because it got banned :/

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages