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

Commit

Permalink
Merge pull request #44 from hcodes/issue-41
Browse files Browse the repository at this point in the history
Improvements in the dictionary #41
  • Loading branch information
hcodes committed Jun 28, 2015
2 parents 31582c9 + 2c42b85 commit 3253c9d
Show file tree
Hide file tree
Showing 8 changed files with 363 additions and 64 deletions.
7 changes: 4 additions & 3 deletions .yaspellerrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
],
"dictionary": [
"args",
"/(C|c)hangelog/",
"changelog",
"CLI",
"deps",
"htm",
"hcodes",
"Habrahabr",
"LF",
"linter",
"Markdown",
"md",
"NONINFRINGEMENT",
"npm",
Expand All @@ -30,7 +31,7 @@
"Seleznev",
"sitemap",
"sublicense",
"/(Y|y)aspeller/",
"Yo"
"yaspeller",
"yo"
]
}
32 changes: 29 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,40 @@
# Changelog

## 2.5.0
- Replace npm module `eyo` to `eyo-kernel`
- Output warnings of duplicate words in dictionaries
- Update deps in package.json
- Simplified regular expressions in words in the dictionary

Before(<= 2.4.0):
```js
[
"someword1", // someword1 = someword1
"Someword2", // Someword2 = Someword2
"/some(w|W)ord[23]/", // some(w|W)ord[23] = some(w|W)ord[23]
"/Some(w|W)ord/" // Some(w|W)ord = Some(w|W)ord
]
```

After(2.5.0):
```js
[
"someword1", // someword1 = someword1 and Someword1
"Someword2", // Someword2 = Someword2
"some(w|W)ord[23]", // some(w|W)ord[23] = some(w|W)ord[23] and Some(w|W)ord[23]
"Some(w|W)ord" // Some(w|W)ord = Some(w|W)ord
]
```

## 2.4.0
- Ability to ignore text when checking

### Bug fixes
- Fix JSON comments in dictionaries and configs
- Fix JSON comments in dictionaries and config's

## 2.3.0
- JSON comments in dictionaries and configs #35
- Аbility to specify multiple dictionaries in option --dictionary #33
- JSON comments in dictionaries and config's #35
- Ability to specify multiple dictionaries in option --dictionary #33
- Markdown report #31
- Update deps in package.json

Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,23 @@ Example: `.md,.htm,.txt`.

#### `--dictionary <file>`
JSON file for own dictionary.
```JSON
```js
[
"someword1",
"someword2",
"someword1", // someword1 = someword1 and Someword1
"Someword2", // Someword2 = Someword2
"someword3"
]
```

Regular expressions are supported:
```js
[
"someword1", // JSON comments
"/(S|s)omeword2/",
"/someword3/i"
"unknownword",
"unknown(W|w)ord[12]?", // unknown(W|w)ord[12]? = unknown(W|w)ord[12]? and Unknown(W|w)ord[12]?
"Unknown(W|w)ord[34]?" // Unknown(W|w)ord[34]? = Unknown(W|w)ord[34]?
]
```

Examples:<br/>
`yaspeller --dictionary my_dict.json .`<br/>
`yaspeller --dictionary my_dict.json:my_dict2.json .`
Expand Down Expand Up @@ -169,8 +170,11 @@ Yaspeller is configured using `.yaspellerrc` JSON file at the root of the projec
],
"report": ["console", "html"],
"dictionary": [
"someword1", // JSON comments
"/(S|s)omeword2/"
// JSON comments
"someword1", // someword1 = someword1 and Someword1
"Someword2", // Someword2 = Someword2
"some(w|W)ord[23]", // some(w|W)ord[23] = some(w|W)ord[23] and Some(w|W)ord[23]
"Some(w|W)ord" // Some(w|W)ord = Some(w|W)ord
],
"ignoreTags": ["code", "script"],
"ignoreUrls": true,
Expand Down
19 changes: 11 additions & 8 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@ yaspeller

#### `--dictionary <file>`
JSON-файл собственного словаря.
```JSON
```js
[
"someword1",
"someword2",
"someword1", // someword1 = someword1 and Someword1
"Someword2", // Someword2 = Someword2
"someword3"
]
```
Поддерживаются регулярные выражения:
```js
[
"someword1", // JSON comments
"/(S|s)omeword2/",
"/someword3/i"
"unknownword",
"unknown(W|w)ord[12]?", // unknown(W|w)ord[12]? = unknown(W|w)ord[12]? and Unknown(W|w)ord[12]?
"Unknown(W|w)ord[34]?" // Unknown(W|w)ord[34]? = Unknown(W|w)ord[34]?
]
```
Примеры использования:<br/>
Expand Down Expand Up @@ -165,8 +165,11 @@ JSON-файл собственного словаря.
],
"report": ["console", "html"],
"dictionary": [
"someword1", // JSON comments
"/(S|s)omeword2/"
// JSON comments
"someword1", // someword1 = someword1 and Someword1
"Someword2", // Someword2 = Someword2
"some(w|W)ord[23]", // some(w|W)ord[23] = some(w|W)ord[23] and Some(w|W)ord[23]
"Some(w|W)ord" // Some(w|W)ord = Some(w|W)ord
],
"ignoreTags": ["code", "script"],
"ignoreUrls": true,
Expand Down
Loading

0 comments on commit 3253c9d

Please sign in to comment.