@valueerror/ltjs-lang-pl 0.0.0-stage → 0.1.1
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 +232 -0
- package/NOTICE +9 -0
- package/README.md +25 -2
- package/index.js +8 -0
- package/licenses/LGPL-2.1.txt +504 -0
- package/licenses/resource_pl_README.txt +67 -0
- package/licenses/resource_pl_hunspell_README_en.txt +34 -0
- package/package.json +60 -4
- package/resource-root.js +4 -0
- package/resources/META-INF/org/languagetool/language-module.properties +1 -0
- package/resources/org/languagetool/resource/pl/README.txt +67 -0
- package/resources/org/languagetool/resource/pl/added.txt +5 -0
- package/resources/org/languagetool/resource/pl/added_custom.txt +4 -0
- package/resources/org/languagetool/resource/pl/compounds.txt +1862 -0
- package/resources/org/languagetool/resource/pl/disambiguation.xml +15826 -0
- package/resources/org/languagetool/resource/pl/hunspell/README_en.txt +34 -0
- package/resources/org/languagetool/resource/pl/hunspell/ignore.txt +182 -0
- package/resources/org/languagetool/resource/pl/hunspell/pl_PL.dict +0 -0
- package/resources/org/languagetool/resource/pl/hunspell/pl_PL.info +19 -0
- package/resources/org/languagetool/resource/pl/hunspell/prohibit.txt +14 -0
- package/resources/org/languagetool/resource/pl/hunspell/spelling.txt +144 -0
- package/resources/org/languagetool/resource/pl/multiwords.txt +232 -0
- package/resources/org/languagetool/resource/pl/nie_compar_exceptions.txt +58 -0
- package/resources/org/languagetool/resource/pl/polish.dict +0 -0
- package/resources/org/languagetool/resource/pl/polish.info +38 -0
- package/resources/org/languagetool/resource/pl/polish_synth.dict +0 -0
- package/resources/org/languagetool/resource/pl/polish_synth.info +38 -0
- package/resources/org/languagetool/resource/pl/polish_tags.txt +1095 -0
- package/resources/org/languagetool/resource/pl/removed.txt +4 -0
- package/resources/org/languagetool/resource/pl/removed_custom.txt +4 -0
- package/resources/org/languagetool/rules/pl/bitext.xml +30 -0
- package/resources/org/languagetool/rules/pl/coherency.txt +323 -0
- package/resources/org/languagetool/rules/pl/grammar.xml +31052 -0
- package/resources/org/languagetool/rules/pl/replace.txt +237 -0
- package/src/lang/pl/language/Polish.js +111 -0
- package/src/lang/pl/rules/CompoundRule.js +40 -0
- package/src/lang/pl/rules/DashRule.js +32 -0
- package/src/lang/pl/rules/DateCheckFilter.js +56 -0
- package/src/lang/pl/rules/DecadeSpellingFilter.js +56 -0
- package/src/lang/pl/rules/MorfologikPolishSpellerRule.js +141 -0
- package/src/lang/pl/rules/PolishUnpairedBracketsRule.js +23 -0
- package/src/lang/pl/rules/PolishWordRepeatRule.js +64 -0
- package/src/lang/pl/rules/SimpleReplaceRule.js +63 -0
- package/src/lang/pl/rules/WordCoherencyRule.js +40 -0
- package/src/lang/pl/synthesis/PolishSynthesizer.js +151 -0
- package/src/lang/pl/tagging/PolishHybridDisambiguator.js +25 -0
- package/src/lang/pl/tagging/PolishTagger.js +95 -0
- package/src/lang/pl/tokenizers/PolishWordTokenizer.js +112 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
languageClasses=org.languagetool.language.Polish
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
README
|
|
2
|
+
|
|
3
|
+
Morfologik is a project aiming at generating Polish morphosyntactic
|
|
4
|
+
dictionaries (hence the name) used for part-of-speech tagging and
|
|
5
|
+
part-of-speech synthesis.
|
|
6
|
+
|
|
7
|
+
VERSION: 2.0 PoliMorf
|
|
8
|
+
|
|
9
|
+
BUILD: 8 mar 2013 12:05:02
|
|
10
|
+
|
|
11
|
+
LICENCE
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2013, Marcin Miłkowski
|
|
14
|
+
All rights reserved.
|
|
15
|
+
|
|
16
|
+
Redistribution and use in source and binary forms, with or without
|
|
17
|
+
modification, are permitted provided that the following conditions are met:
|
|
18
|
+
|
|
19
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
20
|
+
list of conditions and the following disclaimer.
|
|
21
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
22
|
+
this list of conditions and the following disclaimer in the documentation
|
|
23
|
+
and/or other materials provided with the distribution.
|
|
24
|
+
|
|
25
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
26
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
27
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
28
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
29
|
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
30
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
31
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
32
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
33
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
34
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
|
+
|
|
36
|
+
1. morfologik.txt is a tab-separated file, containing the following format:
|
|
37
|
+
|
|
38
|
+
inflected-formHTbase-formHTtags
|
|
39
|
+
|
|
40
|
+
where HT means a horizontal tab.
|
|
41
|
+
|
|
42
|
+
2. polish.dict is a binary dictionary file for morphological analysis in
|
|
43
|
+
fsa_morph program by Jan Daciuk
|
|
44
|
+
(see http://www.eti.pg.gda.pl/katedry/kiw/pracownicy/Jan.Daciuk/personal/fsa.html),
|
|
45
|
+
usable also in LanguageTool grammar checker.
|
|
46
|
+
|
|
47
|
+
3. polish_synth.dict is a binary file for grammatical synthesis, usable
|
|
48
|
+
by morfologik-stemming library. To get an inflected word, use the
|
|
49
|
+
following syntax in fsa_morph:
|
|
50
|
+
|
|
51
|
+
<word>|<tag>
|
|
52
|
+
|
|
53
|
+
For example:
|
|
54
|
+
|
|
55
|
+
niemiecki|adjp
|
|
56
|
+
|
|
57
|
+
gives "niemiecku+".
|
|
58
|
+
|
|
59
|
+
4. polish.info and polish_synth.info are required for using the binary
|
|
60
|
+
dictionaries in morfologik-stemming Java library.
|
|
61
|
+
|
|
62
|
+
TAGSET
|
|
63
|
+
|
|
64
|
+
The tagset used is roughly similar to IPI/NKJP corpus tagset, and described in more detail in the tagset.txt file.
|
|
65
|
+
See also www.nkjp.pl.
|
|
66
|
+
|
|
67
|
+
Morfologik, (c) 2007-2013 Marcin Miłkowski.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# A part-of-speech dictionary that's used additionally to the binary dictionary (*.dict).
|
|
2
|
+
# This does not add words to the spell checker, see hunspell/spelling.txt for that.
|
|
3
|
+
# File Encoding: UTF-8
|
|
4
|
+
# Format: three tab-separated fields: fullform baseform postags
|
|
5
|
+
wieczora wieczór subst:sg:gen:m3
|