toke

0.0.3 • Public • Published
              (`  ).                     _
             (     ).                 .:(`  )`.
)           _(       '`.             :(   .    )
        .=(`(      .   )         .--  `.  (    ) )
       ((    (..__.:'-'       .+(   )   ` _`  ) )
`.     `(       ) )  t o k e  (   .  )     (   )  ._
  )      ` __.:'   )         (   (   ))     `-'.-(`  )
)  )  ( )       --'           `- __.'         :(      ))
.-'  (_.'          .')                    `(    )  ))
                  (_  )                     ` __.:'

toke

A DSL for phrase grammar, more usefully referred to as "mad libs for twitter bots".

import toke from "toke";
console.log(toke.mk("{NP} {VP}");
// "The first toad was cursed by a dog"

Each token is a POS tag enclosed in {delimiters}.

Package Sidebar

Install

npm i toke

Weekly Downloads

2

Version

0.0.3

License

GPLv2

Last publish

Collaborators

  • doeg