0.0.8 • Published 2 years ago

abebe-beso-bela v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Abebe beso bela - Lorem ipsum for Amharic text

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.

Demo website

Installation

npm install abebe-beso-bela

Usage Example

import { generate } from 'abebe-beso-bela'
let generated = generate()

Options

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

Default values

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
})

License

Made with in Addis Ababa.

MIT License © 2022 Biruk H.

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago