2.0.1 • Published 3 years ago

bahai-autocorrect v2.0.1

Weekly downloads
56
License
ISC
Repository
github
Last release
3 years ago

Bahai-autocorrect

Simple replace script to correct most common Baha'i terms as UTF-8 in Text or HTML.

Install the interface module into your node project with:

npm install --save bahai-autocorrect

Functionality

const BahaiAutocorrect = require('bahai-autocorrect');
let str = 'Haji Mirza Haydar-Ali'
let bahaiAutocorrect = new BahaiAutocorrect(str).correct()
let fixedStr = bahaiAutocorrect.toString()

Underlined transliterations

By default, this library outputs underlined transliterations (ch, dh, gh, kh, sh, th, zh) as html with \ tags, e.g. "Síyáh-\Ch\ál".

If you wish to use underscore notation, (e.g. "C_hál", you can run BahaiAutocorrect.stripUnderlines(). Note that in this case the underscores go between the letters, not before them.

2.0.1

3 years ago

2.0.0

5 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

7 years ago

1.0.0

7 years ago