Metadata-Version: 2.1
Name: joji
Version: 1.0.7
Summary: convert a word to corresponding emoji
Home-page: https://github.com/GopikrishnanSasikumar/joji
Author: Gopikrishnan Sasikumar
Author-email: gopikrishnans1996@gmail.com
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown
Requires-Dist: ipython
Requires-Dist: ipdb
Requires-Dist: pytest
Requires-Dist: requests
Requires-Dist: flask
Requires-Dist: gunicorn
Requires-Dist: sqlalchemy
Requires-Dist: mysql-connector-python
Requires-Dist: unidecode
Requires-Dist: spacy
Requires-Dist: emoji

# Joji 
Joji convert a text to corresponding emoji if emoji is available

## How it Works ?
```
1. There is a json file with emoji names as keys and corresponding unicode of emojis as values.
2. There is a method that check if the input word is in the key space of the json. If yes then will return corresponding value.
3. There is a method that do similarity matching of word against the keys in json and return the emoji unicode corresponding to the key with maximum similarity value.
4. There is a threshold to avoid False Positives.
5. If both checking and matching don't return anything, just return the word - means there is no emoji for that word. 
```

## Libraries used
- [Spacy](https://spacy.io)
## How to configure 
```
python setup.py install 
```

## Install

Joji is now available in pip

```
pip install joji
```

## How to Run 

```python
>> from joji.emoji import Jojify
>> print(Jojify.predict("dracula"))
('🧛', '1F9DB', 0.9999999549276969)
>> print(Jojify.predict("ganja"))
('🌿', '1f33f', 0.49594232662709153)

```

## How to Test 
```
pytest tests
```

## Future work
1. Maybe add [vaaku2vec](https://github.com/adamshamsudeen/Vaaku2Vec) and create malayalam text to emoji  


