@cspell/dict-mn-mn 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +62 -0
- package/cspell-ext.json +21 -0
- package/dict/mn-mn.trie.gz +0 -0
- package/package.json +53 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Street Side Software <support@streetsidesoftware.nl>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# CSpell Mongolian Dictionary
|
|
2
|
+
|
|
3
|
+
Mongolian dictionary for cspell.
|
|
4
|
+
|
|
5
|
+
This is a pre-built dictionary for use with CSpell.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Global Install and add to CSpell global settings.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install -g @cspell/dict-mn-mn
|
|
13
|
+
cspell link add @cspell/dict-mn-mn
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Uninstall from CSpell
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
cspell link remove @cspell/dict-mn-mn
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Manual Installation
|
|
23
|
+
|
|
24
|
+
Manual installation is useful if you want to include this dictionary as part of your CI/CD lint process.
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
npm i @cspell/dict-mn-mn
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
The `cspell-ext.json` file in this package should be added to the import section in your `cspell.json` file.
|
|
31
|
+
|
|
32
|
+
```javascript
|
|
33
|
+
{
|
|
34
|
+
// …
|
|
35
|
+
"import": ["@cspell/dict-mn-mn/cspell-ext.json"],
|
|
36
|
+
// …
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
# Dictionary Development
|
|
41
|
+
|
|
42
|
+
See: [How to Create a New Dictionary](https://github.com/streetsidesoftware/cspell-dicts#how-to-create-a-new-dictionary)
|
|
43
|
+
|
|
44
|
+
## License
|
|
45
|
+
|
|
46
|
+
MIT
|
|
47
|
+
|
|
48
|
+
> Some packages may have other licenses included.
|
|
49
|
+
|
|
50
|
+
<!--- @@inject: ../../static/footer.md --->
|
|
51
|
+
|
|
52
|
+
<br/>
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
<p align="center">
|
|
57
|
+
Brought to you by <a href="https://streetsidesoftware.com" title="Street Side Software">
|
|
58
|
+
<img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software
|
|
59
|
+
</a>
|
|
60
|
+
</p>
|
|
61
|
+
|
|
62
|
+
<!--- @@inject-end: ../../static/footer.md --->
|
package/cspell-ext.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "mn-mn",
|
|
3
|
+
"version": "0.2",
|
|
4
|
+
"name": "Mongolian",
|
|
5
|
+
"description": "Mongolian dictionary for cspell.",
|
|
6
|
+
"readonly": true,
|
|
7
|
+
"dictionaryDefinitions": [
|
|
8
|
+
{
|
|
9
|
+
"name": "mn-mn",
|
|
10
|
+
"path": "./dict/mn-mn.trie.gz",
|
|
11
|
+
"description": "Mongolian dictionary."
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"languageSettings": [
|
|
15
|
+
{
|
|
16
|
+
"languageId": "*",
|
|
17
|
+
"locale": "mn,mn-MN",
|
|
18
|
+
"dictionaries": ["mn-mn"]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
}
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cspell/dict-mn-mn",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Mongolian dictionary for cspell.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public",
|
|
7
|
+
"provenance": true
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": "./cspell-ext.json",
|
|
11
|
+
"./cspell": "./cspell-ext.json",
|
|
12
|
+
"./cspell-ext.json": "./cspell-ext.json"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 cspell-tools-cli build",
|
|
16
|
+
"test": "pnpm test:words && pnpm test:samples",
|
|
17
|
+
"test:samples": "cspell samples",
|
|
18
|
+
"test:words": "hunspell-reader words -n 1000 -m 0 \"src/hunspell/index.dic\" | cspell -c ./cspell-ext.json \"--locale=mn,mn-MN\" \"--languageId=*\" stdin",
|
|
19
|
+
"prepublishOnly": "pnpm run conditional-build && pnpm test",
|
|
20
|
+
"prepare:dictionary": "cspell-tools-cli gzip \"dict/*.trie\"",
|
|
21
|
+
"conditional-build": "pnpm run sync && pnpm run build --conditional && pnpm run prepare:dictionary",
|
|
22
|
+
"sync": "pnpm cpy \"node_modules/dictionary-mn/*\" src/hunspell"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/streetsidesoftware/cspell-dicts"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"cspell",
|
|
30
|
+
"cspell-ext",
|
|
31
|
+
"mn_MN",
|
|
32
|
+
"Mongolian",
|
|
33
|
+
"dictionary",
|
|
34
|
+
"spelling"
|
|
35
|
+
],
|
|
36
|
+
"author": "Street Side Software",
|
|
37
|
+
"contributors": [],
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/streetsidesoftware/cspell-dicts/issues"
|
|
41
|
+
},
|
|
42
|
+
"homepage": "https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/mn_MN#readme",
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"dictionary-mn": "^3.0.0"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dict/mn-mn.trie.gz",
|
|
48
|
+
"cspell-ext.json",
|
|
49
|
+
"*.js",
|
|
50
|
+
"*.d.ts"
|
|
51
|
+
],
|
|
52
|
+
"gitHead": "4996958220daa75ae023473ec01d9664621672b4"
|
|
53
|
+
}
|