Skip to main content

Lightweight utility to expand common acronyms and abbreviations into full forms.

Project description

acronym-expander

A lightweight Python utility to expand acronyms into their full forms.

acronym-expander helps developers, data scientists, and technical writers quickly convert commonly used acronyms into human-readable full forms, improving code clarity, documentation, and text processing workflows.

Features:

1.Expand common acronyms with a single function call. 2.Lightweight and dependency-free. 3.Easy to integrate into scripts, notebooks, or larger projects. 4.Useful for documentation, text preprocessing, and educational purposes.

Install

pip install acronym-expander

## Usage
```python
from acronym_expander import DEFAULT_MAP

sentence = "NASA and AI are collaborating with WHO in NYC."

expanded_sentence = " ".join(
    [DEFAULT_MAP.get(word.upper().strip(".,!?;:"), word) for word in sentence.split()]
)

print("Original:", sentence)
print("Expanded:", expanded_sentence)

## Expected Output:
Original: NASA and AI are collaborating with WHO in NYC.
Expanded: National Aeronautics and Space Administration and Artificial Intelligence are collaborating with World Health Organization in New York City.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acronym_expander-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acronym_expander-0.1.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file acronym_expander-0.1.1.tar.gz.

File metadata

  • Download URL: acronym_expander-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for acronym_expander-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3cc800ec7f5169bba91d3c55b260a7eda04600151468c2fcd4a86070ce72d966
MD5 3b83a33af08412378ba486d7a32aa4d2
BLAKE2b-256 6d06ad74f122800d2b3cdf1a8cea58032bcc4ac3895c61289312b93a348b5ca7

See more details on using hashes here.

File details

Details for the file acronym_expander-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for acronym_expander-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd654f4a20a24eea64150933d21a7ba7b54413a2e9b8d1e99efd29a627fe9672
MD5 d89f38a69a8c9500c839c03e3d1baeb3
BLAKE2b-256 bb3a40d68ba169fcae18b6c898b56d4c029505557b9166c03114d8bef62e2c2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page