text-abbrev

0.0.1 • Public • Published

Description

Find explicit abbreviations from a list of words

For example:

The words test and testing both have the ambiguous abbreviation: tes

Installation:
npm install text-abbrev
Usage:
var TextAbbrev = require('text-abbrev');
 
var textabbr = new TextAbbrev([ "test", "testing"]);
 
abbrev.find('tes')
//null (ambiguous)
 
abbrev.find('test')
//test
 
abbrev.find('testi')
//testing
 
abbrev.dump();
{ testin: 'testing',
  testi: 'testing',
  teste: 'tester',
  test: 'test',
  testing: 'testing',
  tester: 'tester' }
 

Readme

Keywords

none

Package Sidebar

Install

npm i text-abbrev

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • infrared