Utilities for research involving words.
Project description
Python package containing functions that may be useful for word research.
Package Contents
clusters: Extract consonant clusters from a list of words.
neighbors: Find the phonological neighbors of a list of words using the one-phoneme deletion, addition, or substitution rule (Luce & Pisoni, 1998).
nsyll_word and nsyll_list: Get the syllable count for individual words or a list of words.
syllable_filter: Extract words with the desired number of syllables from a list.
get_words: Retrieve only the column of interest from a data frame-like corpus. Specifically intended for extracting words, but has flexibility.
Requirements
Python 3 (developed with 3.5)
pandas (developed with 0.18.1)
Installation
Using pip install
pip3 install lexlib
Using conda install
conda install -c cranndarach lexlib
From source
git clone
git clone https://github.com/cranndarach/lexlib.git cd lexlib # using pip pip install # or using setuptools python setup.py install
tarball
In a terminal (remember to update the path):
cd path/to/downloaded/lexlib-M.m.P.tar.gz tar -xzvf lexlib-M.m.P.tar.gz cd lexlib-M.m.P/ # using pip pip install # or using setuptools python setup.py install
Usage
To import the package to use in your project
import lexlib as lx
For documentation on specific functions, see the docs/ directory or the HTML version or enter help(lx.function_name) into your interpreter.
License
This package is licensed under the terms of the MIT license, copyright (c) 2016 R. J. Steiner.
References
Luce, P. A., & Pisoni, D. B. (1998). Recognizing spoken words: The neighborhood activation model. Ear and Hearing, 19(1), 1.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.