language-utils

0.0.11 • Public • Published

language-utils

The language-utils offers some utility features, such as highlight.

Install

npm install language-utils

Usage

Like this if you want to decorate highlighted letter.

var languageUtils = require('language-utils');

//print ma**d**e
var result = languageUtils.English.highlight('made', 'make', (c)=> `**${c}**`);

You can highlight the vowel, too.

//print [ˋv<aʊ><ə>l]
languageUtils.English.highlightVowel('[ˋvaʊəl]', (c)=> `<${c}>`);

Get speech text of zh.

language.English.getSpeechText('adj.', 'zh');

Readme

Keywords

none

Package Sidebar

Install

npm i language-utils

Weekly Downloads

17

Version

0.0.11

License

MIT

Unpacked Size

7.11 kB

Total Files

9

Last publish

Collaborators

  • sparrowjang