tone-tags

1.0.1 • Public • Published

tone-tags

npm version npm downloads

Package available on NPM

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)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i tone-tags

      Weekly Downloads

      1

      Version

      1.0.1

      License

      ISC

      Unpacked Size

      2.58 kB

      Total Files

      3

      Last publish

      Collaborators

      • i.dev