0.0.3 • Published 9 years ago

toke v0.0.3

Weekly downloads
2
License
GPLv2
Repository
github
Last release
9 years ago
              (`  ).                     _
             (     ).                 .:(`  )`.
)           _(       '`.             :(   .    )
        .=(`(      .   )         .--  `.  (    ) )
       ((    (..__.:'-'       .+(   )   ` _`  ) )
`.     `(       ) )  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}.

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago