Observed since 20 Oct, 17:11 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
abbreviations-py
A simple package to replace abbreviations/contractions by full forms. Also works with slangs like b4 (before)
abbreviations_py is a Python package that provides a convenient way to abbreviate and normalize text. It offers functionality to clean text by replacing common abbreviations with their full forms, removing punctuations and hashtags.
You can install abbreviations_py using pip:
pip install abbreviations-py
from abbreviations_py.textes.abbreviator import fix, update_abbreviations
# Fix abbreviated text
input_text = "I'll txt you when you're back, ttyl! #BonVoyage"
result = fix(input_text)
print(result)
# Output: I will text you when you are back talk to you later
# Update abbreviation mappings
new_mappings = {
"ttyl": "talk to you later",
"txt": "text",
# Add more mappings here
}
update_abbreviations(new_mappings)
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
Created by Prajwal Khairnar
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
sdist · 2.49 KB · Python source
Observed since 20 Oct, 17:11 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:191eb1d8c59d9e09cfaaef495b5ecbe3b8a945e85f5bd3f567d002fc2f1996e8