Git Product home page Git Product logo

freestyle's Introduction

HaikuBot

In here there will be a rhyming robot machine that was a haiku

Example Output

There are 133782 words in the phonetic dictionary
There are 2371 rhyme endings in the phonetic dictionary
There are 129218 2-gram pairs

###
HELLO
('Rhyme sound', ('OW',))
('Sum Syllables', 2)
('5 Rhymes', ['GALLARDO', 'CORSENTINO', 'YO', 'GASTINEAU', 'BIRO'])
('5 Nexts', [('AGAIN', 5.985698449118129e-07), ('EVERYBODY', 5.10388668129056e-0
7), ('MY', 5.384783007032171e-07)])

###
ANDY
('Rhyme sound', ('IY',))
('Sum Syllables', 2)
('5 Rhymes', ['GROCHOWSKI', 'SHEPPY', 'GENADY', 'KARWOSKI', 'EMBRY'])
('5 Nexts', [('AND', 9.798665810169675e-07)])

###
HOWDY
('Rhyme sound', ('IY',))
('Sum Syllables', 2)
('5 Rhymes', ['GROCHOWSKI', 'SHEPPY', 'GENADY', 'KARWOSKI', 'EMBRY'])
('5 Nexts', [])

###
FRIEND
('Rhyme sound', ('EH', 'N', 'D'))
('Sum Syllables', 1)
('5 Rhymes', ['DESCEND', 'CONTEND', 'RIVERBEND', 'LANDSEND', 'IMPEND'])
('5 Nexts', [('SAID', 5.465993777118172e-07), ('BY', 4.940978319063545e-07), ('Y
OU', 4.648486777102571e-07), ('WILL', 7.111319553405527e-07), ('A', 8.2448625802
24475e-07)])

###
THANK
('Rhyme sound', ('AE', 'NG', 'K'))
('Sum Syllables', 1)
('5 Rhymes', ['GIROBANK', 'LANK', 'EUBANK', 'COLEBANK', 'COMMERZBANK'])
('5 Nexts', [('ME', 6.613698900082907e-07), ('U', 5.978661657595691e-07), ('THOS
E', 4.7366458256101e-07), ('HER', 4.781698993973888e-07), ('OUR', 8.677824413331
481e-07)])

###
EVERLASTING
('Rhyme sound', ('IH', 'NG'))
('Sum Syllables', 4)
('5 Rhymes', ['WORSHIPPING', 'LUNCHING', 'HOUGHTALING', 'CRIPPLING', 'EXPERIMENT
ING'])
('5 Nexts', [('LIFE', 6.229109476623857e-07)])

freestyle's People

Contributors

falahat avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

freestyle's Issues

Convert to A* Search

Right now, it does a breadth first search on the best words to use. We should stop using generators and just return return one poem. This will be created by choosing the best possible "next word" that will give us a valid poem / line.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.