Skip to main content

This module is helful for removing daily use chatting and business words from any string.

Project description

Internet Words Remover

Internet Words Remover is a Python module that replaces common internet slang and abbreviations with their full forms. It can be used to clean text data containing informal language commonly used in chats, social media, and online communication.

Installation

You can install Internet Words Remover using pip:

pip install internet_words_remover

How to Use

from internet_words_remover import words_remover
text="OMG! It works! Osm"
cleaned=words_remover(text)
print(cleaned)

Output

oh my god It works! Awesome

Tokenization

If you are intrested to get tokens of your give string then use follow code.

from internet_words_remover import words_remover
text="OMG! It works! Osm"
cleaned=words_remover(text,is_token=True)
print(cleaned)

Output

['oh', 'my', 'god', 'It', 'works!', 'Awesome']

Bonus

It also works on pandas series

from internet_words_remover import words_remover
import pandas as pd 
data={
    'Name':['Qadeer'],
    'Message':['Hi gm TIL something new. PTL']
}
df=pd.DataFrame(data)
df['Message'].apply(words_remover,is_token=True)

Output

['Hi', 'good', 'morning', 'today', 'I', 'learned', 'something', 'new.', 'praise', 'the', 'lord']

Catch me on

Github
LinkedIn

Thanks

Keep Learning and Exploring!
License: MIT

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

internet_words_remover-3.1.3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

internet_words_remover-3.1.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file internet_words_remover-3.1.3.tar.gz.

File metadata

File hashes

Hashes for internet_words_remover-3.1.3.tar.gz
Algorithm Hash digest
SHA256 bbbf66a8d0761787d37d11959d4f434a987a9e4eec7d7b699fdf8ed2a8ebad18
MD5 ca6925955f3cd9214e5b5734f6a4f716
BLAKE2b-256 d61cb0a691183fa2aafd55dd6ff12f95b13f14f98d5f06142736fb71fc6e0039

See more details on using hashes here.

File details

Details for the file internet_words_remover-3.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for internet_words_remover-3.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 651f8b4bf999143db49ce12364a443309a74e707bc53c12b9146971e7f92d694
MD5 aa01165c3c9ac082b90bc6d0a1ab988e
BLAKE2b-256 d4886b8bdfe023d08268651ba1db6262d670346609f268f1b2bf3fd37e64cca6

See more details on using hashes here.

Supported by

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