Skip to main content

python package to transform any emoticon to text or its meaning

Project description


Emoticon is a Python package to transform or translate emoticon into text or its meaning. Based on list of emotion in wikipedia, i created a library for text mining. This package contain western and eastern emoticon with over 300 emoticon. This package can also translate emoticon into desired language by adding optional argument.

How to install

pip install emoticon


Following code will show you example how to use this package

From text to emoticon :

from emoticon import emoticon

text = ":) :("

Output : "Smile Sad"

You can also specify the desired language by adding optional argument, for example if you want to return indonesian language, use 'id' as optional parameter.

from emoticon import emoticon

text = ":) :("
emoticon(text, 'id')

Output : "Senyum Sedih"

if you don't specify, it will return english by default.

From emoticon to text :

from emoticon import demoticon

text = "Smile Sad"

Output : ":) :("

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

emoticon-1.0.5.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

emoticon-1.0.5-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

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