Installation¶
Requirements¶
- Python 3.11 or later
Install from PyPI¶
Or with uv:
Optional Extras¶
LLM Support¶
For deep phonetic analysis powered by Anthropic Claude or OpenAI GPT:
This adds the anthropic and openai SDKs. You'll need an API key set in your environment:
Tip
If you use a local agent (e.g. phonemenal analyze numpy --agent claude), you don't need the llm extra — agents are invoked as subprocesses and have no Python SDK dependency.
Grapheme-to-Phoneme¶
For G2P-based pronunciation of out-of-dictionary words:
All Extras¶
NLTK Data¶
phonemenal uses the CMU Pronouncing Dictionary from NLTK. It is downloaded automatically on first use, but you can pre-fetch it:
Or via the Makefile:
Development Install¶
git clone https://github.com/brokensound77/phonemenal.git
cd phonemenal
uv sync --all-extras
make setup # download NLTK data
make test # run the test suite