2.0.1 • Published 4 years ago

bahai-autocorrect v2.0.1

Weekly downloads
56
License
ISC
Repository
github
Last release
4 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

4 years ago

2.0.0

6 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

9 years ago

1.0.0

9 years ago