Skip to content

Given a word, find other words that match at least N phonetic definitions from the end, or - a Rhyme

Notifications You must be signed in to change notification settings

Robert-Wett/RhymeHelper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RhymeHelper

Using the input from CMU's SPHINX Project, given a word return a list of rhyming words, annotated by the number of matching phonemes and their phonetic definition, sorted by the number of matching phonemes.

The API is being hosted on Heroku and on AWS.

Routes

GET /:word

Get a list of words matching at least 2 phonemes sorted by strength, in strict mode

GET /:word?loose=true

Enable loose mode

Example output for 'ORANGE' (GET /orange)

{
    word: "CHALLENGE",
    display: "[3] CHALLENGE: CH AE1 L AH0 N JH",
    strength: 3
},
{
    word: "ALONGE",
    display: "[3] ALONGE: AE1 L AH0 N JH",
    strength: 3
},
{
    word: "COUNTERCHALLENGE",
    display: "[3] COUNTERCHALLENGE: K AW1 N T ER0 CH AE2 L AH0 N JH",
    strength: 3
},
{
    word: "COUNTERCHALLENGE(1)",
    display: "[3] COUNTERCHALLENGE(1): K AW1 N ER0 CH AE2 L AH0 N JH",
    strength: 3
},
{
    word: "LOZENGE",
    display: "[3] LOZENGE: L AO1 Z AH0 N JH",
    strength: 3
},
{
    word: "SCAVENGE",
    display: "[3] SCAVENGE: S K AE1 V AH0 N JH",
    strength: 3
},
{
    word: "BINGE",
    display: "[2] BINGE: B IH1 N JH",
    strength: 2
},
{
    word: "DERANGE",
    display: "[2] DERANGE: D IH0 R EY1 N JH",
    strength: 2
},
{
    word: "DOWNRANGE",
    display: "[2] DOWNRANGE: D AW1 N R EY1 N JH",
    strength: 2
}

About

Given a word, find other words that match at least N phonetic definitions from the end, or - a Rhyme

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published