https://github.com/theoryofnekomata/madlib
Generates madlibs.
https://github.com/theoryofnekomata/madlib
cli discord madlib nodejs
Last synced: about 1 month ago
JSON representation
Generates madlibs.
- Host: GitHub
- URL: https://github.com/theoryofnekomata/madlib
- Owner: TheoryOfNekomata
- License: mit
- Created: 2019-02-26T04:40:40.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T04:57:33.000Z (over 7 years ago)
- Last Synced: 2025-06-20T17:06:20.530Z (12 months ago)
- Topics: cli, discord, madlib, nodejs
- Language: JavaScript
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# madlib
Madlib generator
`madlib` requires the [WordNet Database](https://wordnet.princeton.edu/) for the index of words.
Get the database and unpack on the root directory.
## Usage
Supply a valid Handlebars to `madlib`.
Use tags for words with specific parts of speech. If you want an adverb followed by an adjective and a noun, use:
{{adv.[0]}} {{adj.[0]}} {{noun.[0]}}
If you want two different nouns side by side:
{{noun.[0]}} {{noun.[1]}}
If you want the same noun twice, use:
{{noun.[0]}} {{noun.[0]}}
Here are the available Handlebars helpers for constructing your madlib:
|Name|Used for|
|----|--------|
|`plural`|`noun`|
|`ing`/`gerund`|`verb`|
|`past`|`verb`|
|`pastParticiple`|`verb`|
|`present`|`verb`|
|`comparative`|`adj`/`adv`|
|`superlative`|`adj`/`adv`|
## License
MIT. See the `LICENSE` file for details.