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

4

Version

0.3.6

License

MIT

Unpacked Size

25.8 kB

Total Files

14

Last publish

Collaborators

  • joelcjohnson94
  • abelpz
  • kintsoogii
  • larsgson
  • jakobaleksandrovich
  • neutrinog
  • klappy
  • macolon
  • photo-nomad
  • richmahn
  • bspidel
  • mandolyte
  • jag3773
  • mvahowe