Skip to content
This repository was archived by the owner on Oct 14, 2024. It is now read-only.
/ emojinator Public archive

A ๐Ÿ“ฆto ๐Ÿ”and ๐Ÿ“คall kinds of ๐Ÿ˜„from ๐Ÿ“๐Ÿ”

License

Notifications You must be signed in to change notification settings

getdumont/emojinator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Emojinator

npm version npm download Build Status Coverage Status bitHound Dev Dependencies bitHound Code

A module to extract emoji as data for data analyze.

Introduction

One of the problems during sentiment analyze on text is some text symbols like emojis. This library could make more than only remove emojis from the text, it could ma and replace emojis for your descriptions. It could be useful for people that want to use emojis data like a feature in your IA.

Quick Start

Installing using NPM: npm install emojinator

    const emojinator = require('emojinator');
    const phrase = 'I love gym ๐Ÿ’ช๐Ÿ’™';

    // Will put a description in place of emojis
    // 'I love gym <flexed-biceps><blue-heart>'
    emojinator.changeEmojiForDesc(phrase)

    // Will extract all emojis from phrase
    // 'I love gym'
    emojinator.extractEmoji(phrase)

    // Will get all emoji descriptions (if emoji appears more time will appear more than once)
    // ['flexed-biceps', 'blue-heart']
    emojinator.getEmojis(phrase)

    /**
        Will return a object with all other main functions executed
        {
            rawText: 'I love gym ๐Ÿ’ช๐Ÿ’™',
            preClear: 'I love gym <flexed-biceps><blue-heart>',
            clearText: 'I love gym',
            emojis: ['flexed-biceps', 'blue-heart'],
        }
    **/
    emojinator.fullObject(phrase)

Contribuiting

Feel free to open issues, and pull request to help us improve this library :)

About

A ๐Ÿ“ฆto ๐Ÿ”and ๐Ÿ“คall kinds of ๐Ÿ˜„from ๐Ÿ“๐Ÿ”

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published