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:
CHILE
CHILI
LILLY
-
Pronunciation dictionary: PDict-tiny-01.txt
Input word: chile
Output:
LILLY
SILLY
-
Pronunciation dictionary: PDict-tiny-02.txt
Input word: sour
Output:
DOUR
OVERPOWER
SHOWER
THREE-HOUR
TOWER
-
Pronunciation dictionary: PDict-tiny-02.txt
Input word: four
Output:
BOER
DOOR
STORE
-
Pronunciation dictionary: PronunciationDictionary.txt
Input word: blister
Output:
BRISTER
FISTER
HYSTER
ISTRE
KISTER
MISTER
MR
MR.
PFISTER
PISTOR
RISTER
SISTER
SR
TRANSISTOR
TWISTER
-
Pronunciation dictionary: PronunciationDictionary.txt
Input word: eraser
Output:
ACER
ACER
BASER
BASER
CHASER
CHASER
FACER
FACER
KACER
KACER
LACER
LACER
PACER
PACER
PLACER
PLACER
SPACER
SPACER
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.