Skip to content

impronunciable/regexp-tokenizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

regexp-tokenizer

Aggressive tokenizer (from node-natural)

Installation

$ component install danzajdband/aggressive-tokenizer

Usage

var tokenizer = require('tokenizer')({discard_empty: true, pattern: /W+/});

tokenizer.tokenize('viva la pepa    ');
  //['viva', 'la', 'pepa']

Options

gaps: Boolean

gaps: Boolean

pattern: Regexp

API

RegexpTokenizer#trim

RegexpTokenizer#tokenize

License

MIT

About

regexp tokenizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published