# abbrfix
abbrfix is a Python library for expanding abbreviations commonly used in online communication.
## Installation
To install the library, use pip:
```bash
pip install abbrfix
```
Alternatively, install the latest directly from the GitHub repository:
```bash
pip install git+https://github.com/dsymbol/abbrfix.git
```
## Usage
```python
from abbrfix import expand_all, expand_one, update_abbreviations
# Example text with abbreviations
text = "I'll brb, gtg for lunch, ttyl!"
# Expand all abbreviations in the text
expanded_text = expand_all(text)
print(expanded_text)
# Output: "I'll be right back, got to go for lunch, talk to you later!"
# Expand a specific abbreviation
expanded_text = expand_one(text, "brb")
print(expanded_text)
# Output: "I'll be right back, gtg for lunch, ttyl!"
# Update the abbreviations dictionary with more abbreviations
new_abbreviations = {"lol": "laughing out loud", "omg": "oh my god"}
update_abbreviations(new_abbreviations)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/dsymbol/abbrfix",
"name": "abbrfix",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "dsymbol",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/0b/ba/349fb6db74f023761fabb61010901e8cfa3cee1ab2d6b6a827b5606f0a02/abbrfix-25.2.2023.tar.gz",
"platform": null,
"description": "# abbrfix\n\nabbrfix is a Python library for expanding abbreviations commonly used in online communication.\n\n## Installation\n\nTo install the library, use pip:\n\n```bash\npip install abbrfix\n```\n\nAlternatively, install the latest directly from the GitHub repository:\n\n```bash\npip install git+https://github.com/dsymbol/abbrfix.git\n```\n\n## Usage\n\n```python\nfrom abbrfix import expand_all, expand_one, update_abbreviations\n\n# Example text with abbreviations\ntext = \"I'll brb, gtg for lunch, ttyl!\"\n\n# Expand all abbreviations in the text\nexpanded_text = expand_all(text)\nprint(expanded_text)\n# Output: \"I'll be right back, got to go for lunch, talk to you later!\"\n\n# Expand a specific abbreviation\nexpanded_text = expand_one(text, \"brb\")\nprint(expanded_text)\n# Output: \"I'll be right back, gtg for lunch, ttyl!\"\n\n# Update the abbreviations dictionary with more abbreviations\nnew_abbreviations = {\"lol\": \"laughing out loud\", \"omg\": \"oh my god\"}\nupdate_abbreviations(new_abbreviations)\n```\n",
"bugtrack_url": null,
"license": "OSI Approved :: MIT License",
"summary": "Expand abbreviations commonly used in online communication",
"version": "25.2.2023",
"project_urls": {
"Homepage": "https://github.com/dsymbol/abbrfix"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4eec550dfbbbecb73acb9cf22fb03c005148c301d0b6478854a327c72d7bae08",
"md5": "ac612f446411a774844947377e54cc8d",
"sha256": "c1c4df9a807c2cefaa2d6a67661b782fd7766f07cd01d1550cd51ae0fdec8650"
},
"downloads": -1,
"filename": "abbrfix-25.2.2023-py3-none-any.whl",
"has_sig": false,
"md5_digest": "ac612f446411a774844947377e54cc8d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3277,
"upload_time": "2024-02-25T18:50:15",
"upload_time_iso_8601": "2024-02-25T18:50:15.821005Z",
"url": "https://files.pythonhosted.org/packages/4e/ec/550dfbbbecb73acb9cf22fb03c005148c301d0b6478854a327c72d7bae08/abbrfix-25.2.2023-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0bba349fb6db74f023761fabb61010901e8cfa3cee1ab2d6b6a827b5606f0a02",
"md5": "3c4d5921c2c40ee75508880281a78d5b",
"sha256": "aa06a5ce788850f4b5f463031ca992200cb8f5a534d5e9cac21971ef11573fe6"
},
"downloads": -1,
"filename": "abbrfix-25.2.2023.tar.gz",
"has_sig": false,
"md5_digest": "3c4d5921c2c40ee75508880281a78d5b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2795,
"upload_time": "2024-02-25T18:50:17",
"upload_time_iso_8601": "2024-02-25T18:50:17.686863Z",
"url": "https://files.pythonhosted.org/packages/0b/ba/349fb6db74f023761fabb61010901e8cfa3cee1ab2d6b6a827b5606f0a02/abbrfix-25.2.2023.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-25 18:50:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dsymbol",
"github_project": "abbrfix",
"github_not_found": true,
"lcname": "abbrfix"
}