0.0.1 • Published 10 years ago

text-abbrev v0.0.1

Weekly downloads
6
License
-
Repository
github
Last release
10 years ago

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' }