eyo-kernel
Advanced tools
Comparing version 2.0.0 to 2.0.1
# Changelog | ||
## v2.0.1 | ||
Правки в README.md. | ||
## v2.0.0 | ||
@@ -4,0 +7,0 @@ __API v2 не совместимо с v1__. |
{ | ||
"name": "eyo-kernel", | ||
"description": "Restoring the letter «ё» (yo) in russian texts", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Denis Seleznev", |
@@ -26,3 +26,3 @@ Восстановление буквы «ё» в русских текстах | ||
## Использование | ||
``` | ||
```js | ||
const Eyo = require('eyo-kernel'); | ||
@@ -33,17 +33,17 @@ const text = 'Мой текст...'; | ||
const safeEyo = new Eyo(); | ||
safeEyo.loadSafeSync(); // ./dict/safe.txt | ||
console.log('restore', safeEyo.restore(text)); | ||
console.log('lint', safeEyo.lint(text)); | ||
safeEyo.dictionary.loadSafeSync(); // ./dict/safe.txt | ||
console.log(safeEyo.restore(text)); | ||
console.log(safeEyo.lint(text)); | ||
// Работа с небезопасным встроенным словарём. | ||
const notSafeEyo = new Eyo(); | ||
notSafeEyo.loadNotSafeSync(); // ./dict/not_safe.txt | ||
console.log('restore', notSafeEyo.restore(text)); | ||
console.log('lint', notSafeEyo.lint(text)); | ||
notSafeEyo.dictionary.loadNotSafeSync(); // ./dict/not_safe.txt | ||
console.log(notSafeEyo.restore(text)); | ||
console.log(notSafeEyo.lint(text)); | ||
// Загрузка собственного словаря. | ||
const eyo = new Eyo(); | ||
eyo.loadSync('./my_eyo_dict.txt'); | ||
console.log('restore', eyo.restore(text)); | ||
console.log('lint', eyo.lint(text)); | ||
eyo.dictionary.loadSync('./my_eyo_dict.txt'); | ||
console.log(eyo.restore(text)); | ||
console.log(eyo.lint(text)); | ||
@@ -53,9 +53,7 @@ // Создание собственного словаря. | ||
// Добавить слово в свой словарь. | ||
eyo.addWord('словоСБуквойЁ'); | ||
//... | ||
eyo.dictionary.addWord('словоСБуквойЁ'); | ||
// Удалить слово из словаря. | ||
eyo.removeWord('словоСБуквойЁ'); | ||
//... | ||
eyo.dictionary.removeWord('словоСБуквойЁ'); | ||
// Очистить словарь. | ||
eyo.clear(); | ||
eyo.dictionary.clear(); | ||
``` | ||
@@ -62,0 +60,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
14492
0
76