- Replaces hyphens, nested quotation marks and some uncanonic smiles.
- Place the letter "yo" in some russian words.
Works only in the <textarea>
fields.
If you select a part of the text, only that part will be processed.
Tested only for Chrome: Tampermonkey.
Incompatible with Safari and IE11 due to the use of lookbehind in JS regular expressions.
$ npm install --global mocha
Run all tests:
mocha test
Check main methods:
mocha test/test.js
Check the efficiency of the algorithm on the words with the letter "yo" collected by the project http://python.anabar.ru/yo.htm
mocha test/test-yobase.js
On 2024-03-09 the script corrected 10748 words out of 58138 = 18.49 %
Check the efficiency of the algorithm on the ajectives only
mocha test/test-adjectives.js
On 2024-03-09 the script corrected 351 words out of 2395 = 14.66 %