Blabot – JavaScript powered Core
Blabot is exceptionally language faithful generator of dummy text. Feel free to have some fun using Blabot.net
Usage
var Blabot = fs = ; var dictionaryFilePath = __dirname + '/blabot-dictionary.json'; if !fs throw 'Can’t find file \'' + dictionaryFilePath + '\'\n'; var dictionaryJSON = fs;var dictionary = JSON;var sentences = Blabot; console;
API
Generator
Blabot.getWord(dictionary)
- Return one random word
Blabot.getWords(dictionary, count)
- Return N random words as array
Blabot.getSentence(dictionary)
- Return one sentence with random words
Blabot.getSentences(dictionary, count)
- Return N random sentences as array
Blabot.getParagraph(dictionary)
- Return one random paragraph with random count of 5–10 sentences
Blabot.getParagraphs(dictionary, count)
- Return N random paragraphs as array
Parser
Blabot.parse(dictionary, text)
- Parse given text into dictionary by dictionary.config rules
Dictionary
Empty english-dictionary.json file may looks like this:
You can find dictionaries in blabot-dictionaries repo.
Blabot CLI
Feel free to use Blabot CLI for simple initiation, text parsing and blabols generation.