Inflectere - From Latin to English - "to bend, to shape, to form"
Inflectere is a small Python library to inflect words in English. Specifically, to convert a word from singular to plural, and vice versa.
pip install inflectere
from inflectere import Inflectere
inflect = Inflectere()
inflect.pluralize("cat") # cats
inflect.singularize("cats") # cat
There are many inflectors out there, but I couldn't find one that was simple, easy to use, and had a small footprint.
Contributions are welcome! Please open an issue or submit a pull request.
MIT
See the CHANGELOG file.
Inflectere documentation is built using Sphinx and is hosted on Read the Docs.
To build the documentation make sure you have the dependencies installed: from the root directory: pip install -r docs/requirements.txt
.
Now you can build the docs using: sphinx-build -b html docs build
This library is inspired by the following libraries: