Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Update major yandex-speller package
Browse files Browse the repository at this point in the history
  • Loading branch information
hcodes committed Nov 11, 2023
1 parent 83cc3d4 commit bcd8dcf
Show file tree
Hide file tree
Showing 13 changed files with 142 additions and 201 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## v10.0.0
- Update major `yandex-speller` package.
- Remove unsupported options of new API Yandex Speller: `flagLatin`, `ignoreLatin`, `byWords`, `ignoreRomanNumerals` and `ignoreUppercase`.

## v9.1.0
- Update `yandex-speller` package.

Expand Down
5 changes: 1 addition & 4 deletions README.md
Expand Up @@ -229,15 +229,12 @@ To run the linter:<br/>
| `dictionary` | `Array` | [`--dictionary`](#--dictionary-file) |
| `report` | `Array` | [`--report`](#--report-type) |
| `checkYo` | `Boolean` | [`--check-yo`](#--check-yo) |
| `byWords` | `Boolean` | [`--by-words`](#--by-words) |
| `findRepeatWords` | `Boolean` | [`--find-repeat-words`](#--find-repeat-words) |
| `flagLatin` | `Boolean` | [`--flag-latin`](#--flag-latin) |
| `ignoreTags` | `Array` | [`--ignore-tags`](#--ignore-tags-tags) |
| `ignoreText` | `Array` | [`--ignore-text`](#--ignore-text-regexp) |
| `ignoreCapitalization` | `Boolean` | [`--ignore-capitalization`](#--ignore-capitalization) |
| `ignoreDigits` | `Boolean` | [`--ignore-digits`](#--ignore-digits) |
| `ignoreLatin` | `Boolean` | [`--ignore-latin`](#--ignore-latin) |
| `ignoreRomanNumerals` | `Boolean` | [`--ignore-roman-numerals`](#--ignore-roman-numerals) |
(#--ignore-roman-numerals) |
| `ignoreUppercase` | `Boolean` | [`--ignore-uppercase`](#--ignore-uppercase) |
| `ignoreUrls` | `Boolean` | [`--ignore-urls`](#--ignore-urls) |
| `maxRequests` | `Number` | [`--max-requests`](#--max-requests-value) |
Expand Down
5 changes: 0 additions & 5 deletions README.ru.md
Expand Up @@ -221,16 +221,11 @@ JSON-褎邪泄谢 褋芯斜褋褌胁械薪薪芯谐芯 褋谢芯胁邪褉褟.
| `dictionary` | `Array` | [`--dictionary`](#--dictionary-file) |
| `report` | `Array` | [`--report`](#--report-type) |
| `checkYo` | `Boolean` | [`--check-yo`](#--check-yo) |
| `byWords` | `Boolean` | [`--by-words`](#--by-words) |
| `findRepeatWords` | `Boolean` | [`--find-repeat-words`](#--find-repeat-words) |
| `flagLatin` | `Boolean` | [`--flag-latin`](#--flag-latin) |
| `ignoreTags` | `Array` | [`--ignore-tags`](#--ignore-tags-tags) |
| `ignoreText` | `Array` | [`--ignore-text`](#--ignore-text-regexp) |
| `ignoreCapitalization` | `Boolean` | [`--ignore-capitalization`](#--ignore-capitalization) |
| `ignoreDigits` | `Boolean` | [`--ignore-digits`](#--ignore-digits) |
| `ignoreLatin` | `Boolean` | [`--ignore-latin`](#--ignore-latin) |
| `ignoreRomanNumerals` | `Boolean` | [`--ignore-roman-numerals`](#--ignore-roman-numerals) |
| `ignoreUppercase` | `Boolean` | [`--ignore-uppercase`](#--ignore-uppercase) |
| `ignoreUrls` | `Boolean` | [`--ignore-urls`](#--ignore-urls) |
| `maxRequests` | `Number` | [`--max-requests`](#--max-requests-value) |

Expand Down
7 changes: 1 addition & 6 deletions lib/cli/options.js
Expand Up @@ -9,15 +9,10 @@ const { kebabCase, splitTrim, splitByCommas } = require('../helpers/string');
const { packageJson } = require('../helpers/package');

const apiOptions = [
['byWords', 'do not use a dictionary environment (context) during the scan. This is useful in cases where the service is transmitted to the input of a list of individual words'],
['findRepeatWords', 'highlight repetitions of words, consecutive. For example, "I flew to to to Cyprus"'],
['flagLatin', 'celebrate words, written in Latin, as erroneous'],
['ignoreCapitalization', 'ignore the incorrect use of UPPERCASE / lowercase letters, for example, in the word "moscow"'],
['ignoreDigits', 'ignore words with numbers, such as "avp17h4534"'],
['ignoreLatin', 'ignore words, written in Latin, for example, "madrid"'],
['ignoreRomanNumerals', 'ignore Roman numerals ("I, II, III, ...")'],
['ignoreUrls', 'ignore Internet addresses, email addresses and filenames'],
['ignoreUppercase', 'ignore words written in capital letters']
['ignoreUrls', 'ignore Internet addresses, email addresses and filenames']
];

function setCliOptions(defaultConfig) {
Expand Down
7 changes: 1 addition & 6 deletions lib/config/properties.json
Expand Up @@ -6,16 +6,11 @@
"dictionary": { "type": "array" },
"report": { "type": "array" },
"checkYo": { "type": "boolean" },
"byWords": { "type": "boolean" },
"findRepeatWords": { "type": "boolean" },
"flagLatin": { "type": "boolean" },
"ignoreTags": { "type": "array" },
"ignoreText": { "type": "array" },
"ignoreCapitalization": { "type": "boolean" },
"ignoreDigits": { "type": "boolean" },
"ignoreLatin": { "type": "boolean" },
"ignoreRomanNumerals": { "type": "boolean" },
"ignoreUppercase": { "type": "boolean" },
"ignoreUrls": { "type": "boolean" },
"maxRequests": { "type": "number" }
"maxRequests": { "type": "number" }
}

0 comments on commit bcd8dcf

Please sign in to comment.