tone-tags
v1.0.1
Published
Adding and deciphering tone identifiers in text
Downloads
3
Maintainers
Readme
tone-tags
A simple node module that adds and can decipher tone tags on a piece of text!
What are tone tags/indicators?
Tone tags or tone indicators are symbols that can accompany social media posts, comments, and messages. Their purpose is to explicitly state the intent and tone behind the text, often to prevent miscommunication.
Installation:
npm install tone-tags
Usage:
const tag = require('tone-tags');
console.log(tone.tagify('This is a joking statement that might be confusing to decipher over text (joking) (sarcastic) (light-hearted)'));
// Output: This is a joking statement that might be confusing to decipher over text /j /s /lh
console.log(tone.decode('What do these tags even mean?? /ly /pos /neg /hyp'));
// Output: What do these tags even mean?? (lyrics) (positive) (negative) (hyperbole)