A Node.js module for generating Amharic placeholder text.
The project is named after a well-known Amharic sentence (አበበ በሶ በላ።) that is used to educate children how to construct sentences.
npm install abebe-beso-bela
import { generate } from 'abebe-beso-bela'
let generated = generate()
You can pass options and extra to customize the functions output
let generated = generate({
amount?:number
scope?:'PARAGRAPHS' | 'WORDS' | 'SENTENCES'
startWith?: boolean
},{
MIN_WORDS_PER_SENTENCE?: number
MAX_WORDS_PER_SENTENCE?: number
MIN_SENTENCES_PER_PARAGRAPH?: number
MAX_SENTENCES_PER_PARAGRAPH?: number
})
//startWith default is true — adds the default "አበበ በሶ በላ" at the beginning of the generated output
let generated = generate({
amount:1
scope:'PARAGRAPHS'
startWith: true
},{
MIN_WORDS_PER_SENTENCE: 5
MAX_WORDS_PER_SENTENCE: 15
MIN_SENTENCES_PER_PARAGRAPH: 3
MAX_SENTENCES_PER_PARAGRAPH: 10
})
Made with ♥ in Addis Ababa.
MIT License © 2022 Biruk H.