func ExtractRhyme(pronunciation string) Rhyme {
	tail := getLastSyllables(strings.ToLower(pronunciation), 4)
	strongRhyme := reduceSoundalikes(tail)
	averageRhyme := getLastSyllables(strongRhyme, 3)
	weakRhyme := getLastSyllables(averageRhyme, 2)

	var rhyme Rhyme
	rhyme.StrongRhyme = strongRhyme
	rhyme.AverageRhyme = averageRhyme
	rhyme.WeakRhyme = weakRhyme

	return rhyme
}
// ExtractRhyme extracts the syllables that are used in rhymes
// it tries to detect and return the last two syllables
// as for vowels and consonants, two situations can occur
// 1: ending with a consontant(s), e. g. heliport (returns iport)
// 2: ending with a vowel(s), e. g. factory (returns tory)
// the syllables are normalized for rhyming, e.g. brad and brat are the same rhyme, returns brat
ExtractRhyme extracts the syllables that are used in rhymes
it tries to detect and return the last two syllables
as for vowels and consonants, two situations can occur
1: ending with a consontant(s), e. g. heliport (returns iport)
2: ending with a vowel(s), e. g. factory (returns tory)
the syllables are normalized for rhyming, e.g. brad and brat are the same rhyme, returns brat
// ExtractRhyme extracts the syllables that are used in rhymes // it tries to detect and return the last two syllables // as for vowels and consonants two situations can occur // 1 : ending with a consontant ( s ) e . g . heliport ( returns iport ) // 2 : ending with a vowel ( s ) e . g . factory ( returns tory ) // the syllables are normalized for rhyming e . g . brad and brat are the same rhyme returns brat
func ExtractRhyme(pronunciation string) Rhyme {
	tail := getLastSyllables(strings.ToLower(pronunciation), 4)
	strongRhyme := reduceSoundalikes(tail)
	averageRhyme := getLastSyllables(strongRhyme, 3)
	weakRhyme := getLastSyllables(averageRhyme, 2)
	var rhyme Rhyme
	rhyme.StrongRhyme = strongRhyme
	rhyme.AverageRhyme = averageRhyme
	rhyme.WeakRhyme = weakRhyme
	return rhyme
}
func ExtractRhyme ( pronunciation string ) Rhyme { tail := getLastSyllables ( strings . ToLower ( pronunciation ) , 4 ) strongRhyme := reduceSoundalikes ( tail ) averageRhyme := getLastSyllables ( strongRhyme , 3 ) weakRhyme := getLastSyllables ( averageRhyme , 2 ) var rhyme Rhyme rhyme . StrongRhyme = strongRhyme rhyme . AverageRhyme = averageRhyme rhyme . WeakRhyme = weakRhyme return rhyme }
ExtractRhyme extracts the syllables that are used in rhymes
it tries to detect and return the last two syllables
as for vowels and consonants, two situations can occur
1: ending with a consontant(s), e. g. heliport (returns iport)
2: ending with a vowel(s), e. g. factory (returns tory)
the syllables are normalized for rhyming, e.g.
ExtractRhyme extracts the syllables that are used in rhymes it tries to detect and return the last two syllables as for vowels and consonants two situations can occur 1 : ending with a consontant ( s ) e . g . heliport ( returns iport ) 2 : ending with a vowel ( s ) e . g . factory ( returns tory ) the syllables are normalized for rhyming e . g .