Notable changes to this project are listed here. The format follows Keep a Changelog, and the project uses semantic versioning.
- Contractions written with a curly apostrophe (
you’re,can’t) are expanded again. A refactor before 0.2.0 broke the normalization step, so every release of this fork only matched straight apostrophes. Output now matchescontractions0.1.73.
- A
py.typedmarker, so mypy and pyright use the package's type hints. SECURITY.md,CONTRIBUTING.md, and issue and pull request templates.
- Rewrote the README.
- Building from source requires setuptools 77 or newer.
0.3.2 - 2025-12-15
load_folder(), which loads every*.jsonfile in a directory.
- Tags created by the auto-tag workflow now trigger the PyPI publish workflow. 0.3.0 and 0.3.1 were tagged but never published.
0.3.1 - 2025-12-15
Tagged but not published to PyPI.
- Internal cleanup:
pathlibfor file handling, complete type annotations, and stricter lint and type checks. No behavior changes.
0.3.0 - 2025-12-12
Tagged but not published to PyPI.
expand(), which replacesfix().fix()still works but emits aDeprecationWarning.e()andp()as short aliases forexpand()andpreview().- Type hints throughout.
- Argument checks that raise
TypeErrororValueErrorwith a clear message.
load_json()was renamed toload_file().preview()'sflankparameter was renamed tocontext_chars.- The matchers are built on the first call instead of at import time.
0.2.0 - 2025-12-12
First release as sane-contractions, forked from contractions 0.1.73.
add_dict()andload_json()for adding many entries at once.
- Requires Python 3.10 or newer.