wordmap-lexer
TypeScript icon, indicating that this package has built-in type declarations

0.3.6 • Public • Published

Build Status codecov TypeScript

wordMAP-lexer

A lexical tool for wordMAP

The lexer provides tools generating tokens which can be fed into WordMAP.

Install

npm i wordmap-lexer

Usage

 
require Lexer, {Token} from 'wordmap-lexer';
 
const tokens : Token[] = Lexer.tokenize("hello, world");
// produces tokens "hello" and "world".
 
const puct_tokens : Token[] = Lexer.tokenize("hello, world", {punctuation: true});
// produces tokens "hello", ",", and "world".
 

Readme

Keywords

none

Package Sidebar

Install

npm i wordmap-lexer

Weekly Downloads

21

Version

0.3.6

License

MIT

Unpacked Size

25.8 kB

Total Files

14

Last publish

Collaborators

  • abelpz
  • larsgson
  • jakobaleksandrovich
  • neutrinog
  • klappy
  • photo-nomad
  • richmahn
  • mandolyte
  • jag3773
  • mvahowe