Skip to main content

Utilities for research involving words.

Project description

Python library for some utilities that may be useful for word research.


This project is a work in progress. New functions may be added at any point. See for important changes.


  • Extract consonant clusters from a word or list of words.
  • Find neighbors of words.
  • Other neighbor utilities, e.g., type of neighbor relationship, position of divergence.
  • Get the syllable count for words or a list of words, or filter lists of words by number of syllables.


  • Python 3


Using pip install

pip3 install lexlib

Using conda install

conda install -c cranndarach lexlib

From source

git clone for the development version

git clone
cd lexlib
pip install

Download a release

Download the latest release

In a terminal (remember to update the path):

cd path/to/download/lexlib-x.y.z.tar.gz
tar -xvf lexlib-x.y.z.tar.gz
cd lexlib-x.y.z/
pip install


To import the package to use in your project

import lexlib as lx


All of the submodules are imported by lexlib. That means that you can call, for example, lx.get_neighbor_pairs() instead of lx.neighbors.get_neighbor_pairs().

For documentation on specific functions, see the docs/ directory or the online documentation or enter help(lx.function_name) into your interpreter.


This package is licensed under the terms of the MIT license, copyright (c) 2016-2018 R. Steiner.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
lexlib-2.2.2-py3-none-any.whl (7.8 kB) Copy SHA256 hash SHA256 Wheel py3
lexlib-2.2.2.tar.gz (6.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page