Package Exports
- nlcst-emoji-modifier
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nlcst-emoji-modifier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nlcst-emoji-modifier

Classify unicode emoji and Gemoji shortcodes as EmoticonNodes.
Implemented by retext-emoji, but separated for use by standalone (non-retext) processing.
Installation
npm:
npm install nlcst-emoji-modifierUsage
var modifier = require('nlcst-emoji-modifier');
var inspect = require('unist-util-inspect');
var english = require('parse-english')();
english.useFirst('tokenizeSentence', modifier);
console.log(inspect(english.parse('It\'s raining ðąs and ðķs.')));Yields:
RootNode[1]
ââ ParagraphNode[1]
ââ SentenceNode[10]
ââ WordNode[1]
â ââ TextNode: 'Who'
ââ WhiteSpaceNode: ' '
ââ WordNode[3]
â ââ TextNode: 'doesn'
â ââ PunctuationNode: 'â'
â ââ TextNode: 't'
ââ WhiteSpaceNode: ' '
ââ WordNode[1]
â ââ TextNode: 'like'
ââ WhiteSpaceNode: ' '
ââ WordNode[1]
â ââ TextNode: 'Gemoji'
ââ WhiteSpaceNode: ' '
ââ EmoticonNode: 'ð'
ââ PunctuationNode: '?'API
emoji(sentence)
Merge affix emoticons into the previous sentence.
Parameters
paragraph(NLCSTSentenceNode).
License
MIT ÂĐ Titus Wormer