Generate minimal pairs (and minimal sets).
Project description
Minpair
Generate minimal pairs (and minimal sets) for US English words.
In phonology, minimal pairs are pairs of words or phrases in a particular language, spoken or signed, that differ in only one phonological element
>>> import minpair
>>> minpair.vowel_minpair(['AE', 'EH'])[:4]
[{'AE': 'al', 'EH': 'l'}, {'AE': 'axe', 'EH': 'x'}, {'AE': 'bad', 'EH': 'bed'}, {'AE': 'bag', 'EH': 'beg'}]
Installation
pip install minpair
Dependencies
NLTK
This package depends on a few NLTK's corpora, namely: brown, cmudict, universal_tagset, and words corpus. This package will download these corpora into NLTK data directory if not available.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.