Nature's Particle Manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

lipogram

1.0.0 • Public • Published

lipogram

an oulipian poetry detector.

lipogram:

Writing that excludes one or more letters
The previous sentence is a lipogram in B, F, H, J, K, Q, V, Y, and Z
(it does not contain any of those letters)

-- Prisoner's constraint, also called Macao constraint
A type of lipogram that omits letters with ascenders and descenders
(b, d, f, g, h, j, k, l, p, q, t, and y)

api

lipogram(string, array or boolean)

  • if passed true: checks string against the prisoner's constraint letters
  • if passed an array: checks string against the array
  • if passed nothing: returns an array of letters for which the string is lipogrammatic, or false if there are none

install

npm i lipogram

Downloadsweekly downloads

3

version

1.0.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar