Catalog PyPI
PACKAGE EXPLORERView in registry

abbreviations-py

PyPI

A simple package to replace abbreviations/contractions by full forms. Also works with slangs like b4 (before)

Versions collected1
Direct dependencies0From release 0.2
Last observed20 Oct, 17:11 UTC

README

Version 0.2 documentation

abbreviations_py

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.

Installation

You can install abbreviations_py using pip:

pip install abbreviations-py

Usage

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)

Contributing

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.

License

This project is licensed under the MIT License.


Created by Prajwal Khairnar

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.225 Aug 20230

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:11 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:7b35421309c65fe69825684501922116e7f06239b60855dd7276ec4add887c0c