CSc 120: Rhymer Examples
Pronunciation Dictionary Characteristics
It can be helpful, for testing and debugging, to start out with small input files
and work up to larger inputs. In addition to the
full pronunciation dictionary
PronunciationDictionary.txt,
the examples below use three smaller pronunciation dictionaries:
-
PDict-tiny-01.txt.
11 words.
-
PDict-tiny-02.txt.
21 words.
-
PDict-small.txt.
42 words.
-
PronunciationDictionary.txt,
133,789 words.
You are encouraged to construct your own small pronunciation dictionaries for testing
purposes by extracting slices of the full dictionary.
Examples
-
Pronunciation dictionary: PDict-tiny-01.txt
Input word: silly
Output:
CHILI
CHILE
LILLY
-
Pronunciation dictionary: PDict-tiny-01.txt
Input word: chile
Output:
SILLY
LILLY
-
Pronunciation dictionary: PDict-tiny-02.txt
Input word: sour
Output:
OVERPOWER
THREE-HOUR
DOUR
TOWER
SHOWER
-
Pronunciation dictionary: PDict-tiny-02.txt
Input word: four
Output:
DOOR
STORE
BOER
-
Pronunciation dictionary: PronunciationDictionary.txt
Input word: blister
Output:
TRANSISTOR
MR.
FISTER
RISTER
BRISTER
ISTRE
MR
PFISTER
SR
TWISTER
MISTER
HYSTER
PISTOR
KISTER
SISTER
-
Pronunciation dictionary: PronunciationDictionary.txt
Input word: eraser
Output:
CHASER
BASER
FACER
KACER
ACER
SPACER
PLACER
PACER
LACER
CHASER
BASER
FACER
KACER
ACER
SPACER
PLACER
PACER
LACER
In this example, the input word has two pronunciations for the vowel sound preceding the
stressed syllable. This gives rise to all of the duplicates in the output.