1.0.7 • Published 2 years ago
super-emoji-text-parser v1.0.7
Emoji Text Parser
A simple library to automatically replace keywords in text with their corresponding emojis using natural language processing (NLP) techniques.
Features
- Parses given text to identify key terms.
- Replaces identified terms with emojis.
- Utilizes a combination of NLP techniques for accurate term identification.
Installation
npm install super-emoji-text-parserUsage
const convertTextToEmoji = require('super-emoji-text-parser');
const sampleText = 'I love coding and coffee!';
convertTextToEmoji(sampleText).then((processedText) => {
console.log(processedText); // Outputs: I ❤️ coding and ☕!
});Dependencies
compromise: for basic NLP and text processing.emoji-dictionary: for converting keywords to emojis.natural: for tokenizing and natural language utilities.node-fetch: for fetching data from external emoji APIs (optional).retext,retext-emoji: for advanced text processing and emoji conversion.unified: for processing textual data with plug-ins.
Contributing
Feel free to dive in! Open an issue or submit PRs.
License
MIT © Artem Koval
1.0.7
2 years ago