1.1.4 • Published 7 years ago

stringmatcher v1.1.4

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

stringmatcher

This is a very small, and simple string matcher that scans for words or strings. Its inspired by the concept of machine learning.

This version returns an array of matched words, or an empty array if none were found.

Example Usage

var string_matcher = require('stringmatcher');
var sm = new string_matcher()
console.log(sm.scan('hello there!')) // returns []
console.log(sm.add_word(['hello'])) // add method
console.log(sm.scan('hello there!')) // returns ['hello']

console.log(sm.remove_word('hello')) // returns true if removed
1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago