srx-languagetool 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +2 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +18 -15
- data/lib/srx/languagetool/version.rb +1 -1
- data/lib/srx/segment.srx +22 -5
- data/srx-languagetool.gemspec +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95785521482bc1320317e3de14176b86f63c2df5a670ee1f52ce820f0e73fc12
|
4
|
+
data.tar.gz: 20ac98ad63e4618da846b2b21d907ee965c12e8ae16d5d42f713cd50906dcf4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 135e9dea7489c2d50c50df10df5ad49672b212ef3269a559a8309e67281dfa01cb2ba93372a33b11798a4ccb8cbacbac29429c135cc412d361fd0fc8566d7e4d
|
7
|
+
data.tar.gz: 845ff08b14a5f7f0a0fdff7d2ba570113870eaed2eaa2b6c78b772431ddf38d4af735c6d0c2a2490f7d827712c789144816885e2de88a1075f02f7776066977b
|
data/.github/workflows/main.yml
CHANGED
@@ -10,10 +10,10 @@ jobs:
|
|
10
10
|
- name: Set up Ruby
|
11
11
|
uses: ruby/setup-ruby@v1
|
12
12
|
with:
|
13
|
-
ruby-version: 2.7.
|
13
|
+
ruby-version: 2.7.5
|
14
14
|
- name: Install
|
15
15
|
run: |
|
16
|
-
gem install bundler -v 2.
|
16
|
+
gem install bundler -v 2.3.4
|
17
17
|
bundle install
|
18
18
|
- name: Type check
|
19
19
|
run: bundle exec solargraph typecheck --level typed
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.7.
|
1
|
+
2.7.5
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
srx-languagetool (0.
|
4
|
+
srx-languagetool (0.5.0)
|
5
5
|
srx (< 1.0)
|
6
6
|
|
7
7
|
GEM
|
@@ -9,45 +9,45 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
ast (2.4.2)
|
11
11
|
backport (1.2.0)
|
12
|
-
benchmark (0.
|
12
|
+
benchmark (0.2.0)
|
13
13
|
byebug (11.1.3)
|
14
|
-
diff-lcs (1.
|
14
|
+
diff-lcs (1.5.0)
|
15
15
|
e2mmap (0.1.0)
|
16
16
|
jaro_winkler (1.5.4)
|
17
17
|
kramdown (2.3.1)
|
18
18
|
rexml
|
19
19
|
kramdown-parser-gfm (1.1.0)
|
20
20
|
kramdown (~> 2.0)
|
21
|
-
minitest (5.
|
21
|
+
minitest (5.15.0)
|
22
22
|
nokogiri (1.12.5-x86_64-darwin)
|
23
23
|
racc (~> 1.4)
|
24
24
|
parallel (1.21.0)
|
25
|
-
parser (3.0.2
|
25
|
+
parser (3.0.3.2)
|
26
26
|
ast (~> 2.4.1)
|
27
|
-
racc (1.
|
27
|
+
racc (1.6.0)
|
28
28
|
rainbow (3.0.0)
|
29
29
|
rake (13.0.6)
|
30
|
-
regexp_parser (2.
|
31
|
-
reverse_markdown (2.
|
30
|
+
regexp_parser (2.2.0)
|
31
|
+
reverse_markdown (2.1.1)
|
32
32
|
nokogiri
|
33
33
|
rexml (3.2.5)
|
34
34
|
rspec-expectations (3.10.1)
|
35
35
|
diff-lcs (>= 1.2.0, < 2.0)
|
36
36
|
rspec-support (~> 3.10.0)
|
37
|
-
rspec-support (3.10.
|
38
|
-
rubocop (1.
|
37
|
+
rspec-support (3.10.3)
|
38
|
+
rubocop (1.24.0)
|
39
39
|
parallel (~> 1.10)
|
40
40
|
parser (>= 3.0.0.0)
|
41
41
|
rainbow (>= 2.2.2, < 4.0)
|
42
42
|
regexp_parser (>= 1.8, < 3.0)
|
43
43
|
rexml
|
44
|
-
rubocop-ast (>= 1.
|
44
|
+
rubocop-ast (>= 1.15.0, < 2.0)
|
45
45
|
ruby-progressbar (~> 1.7)
|
46
46
|
unicode-display_width (>= 1.4.0, < 3.0)
|
47
|
-
rubocop-ast (1.
|
47
|
+
rubocop-ast (1.15.1)
|
48
48
|
parser (>= 3.0.1.1)
|
49
49
|
ruby-progressbar (1.11.0)
|
50
|
-
solargraph (0.44.
|
50
|
+
solargraph (0.44.2)
|
51
51
|
backport (~> 1.2)
|
52
52
|
benchmark
|
53
53
|
bundler (>= 1.17.2)
|
@@ -67,10 +67,13 @@ GEM
|
|
67
67
|
thor (1.1.0)
|
68
68
|
tilt (2.0.10)
|
69
69
|
unicode-display_width (2.1.0)
|
70
|
-
|
70
|
+
webrick (1.7.0)
|
71
|
+
yard (0.9.27)
|
72
|
+
webrick (~> 1.7.0)
|
71
73
|
|
72
74
|
PLATFORMS
|
73
75
|
x86_64-darwin-20
|
76
|
+
x86_64-darwin-21
|
74
77
|
|
75
78
|
DEPENDENCIES
|
76
79
|
byebug
|
@@ -82,4 +85,4 @@ DEPENDENCIES
|
|
82
85
|
srx-languagetool!
|
83
86
|
|
84
87
|
BUNDLED WITH
|
85
|
-
2.
|
88
|
+
2.3.4
|
data/lib/srx/segment.srx
CHANGED
@@ -1134,6 +1134,14 @@
|
|
1134
1134
|
<beforebreak>\bU\.</beforebreak>
|
1135
1135
|
<afterbreak>[SK]\b</afterbreak>
|
1136
1136
|
</rule>
|
1137
|
+
<rule break="no"><!-- I.S (no dot at end) -->
|
1138
|
+
<beforebreak>\bI\.</beforebreak>
|
1139
|
+
<afterbreak>S\b</afterbreak>
|
1140
|
+
</rule>
|
1141
|
+
<rule break="no"><!-- M.Z (no dot at end) -->
|
1142
|
+
<beforebreak>\bM\.</beforebreak>
|
1143
|
+
<afterbreak>Z\b</afterbreak>
|
1144
|
+
</rule>
|
1137
1145
|
<rule break="no"><!-- URLs without "www."-->
|
1138
1146
|
<beforebreak>\b(https?|ftp|file|chrome|chromium|android|(chrome|moz)\-extension):///?[A-Za-z0-9\-]+\.</beforebreak>
|
1139
1147
|
<afterbreak>[A-Za-z0-9\-]+(\.|\b)</afterbreak>
|
@@ -1520,6 +1528,11 @@
|
|
1520
1528
|
</languagerule>
|
1521
1529
|
<languagerule languagerulename="Dutch">
|
1522
1530
|
<rule break="no">
|
1531
|
+
<!-- sp.a -->
|
1532
|
+
<beforebreak>\b(sp|SP)</beforebreak>
|
1533
|
+
<afterbreak>\.[aA]\b</afterbreak>
|
1534
|
+
</rule>
|
1535
|
+
<rule break="no">
|
1523
1536
|
<!-- .Net -->
|
1524
1537
|
<beforebreak>\s[.]</beforebreak>
|
1525
1538
|
<afterbreak>[Nn][Ee][Tt](\b|-)</afterbreak>
|
@@ -4955,7 +4968,7 @@
|
|
4955
4968
|
</rule>
|
4956
4969
|
<!-- English abbreviations - but these work globally for all languages -->
|
4957
4970
|
<rule break="no">
|
4958
|
-
<beforebreak>\b(Mrs?|No|pp|St|no|Sr|Jr|Bros|etc|[Bb]tw|vs|esp|[Ff]ig|Jan|Feb|Mar|Apr|Ju[nl]|Aug|Sept?|O[ck]t|Nov|Dec|PhD|BSc|BEng|BComp|BArch|al|cf|Inc|Ms|MEng|MSc|MComp|Gen|Sen|Prof|Corp|Co|co|Ltd)\.[\u00A0\s]</beforebreak>
|
4971
|
+
<beforebreak>\b(Mrs?|No|pp|St|no|Sr|Jr|Bros|etc|[Bb]tw|vs|esp|[Ff]ig|Jan|Feb|Mar|Apr|Ju[nl]|Aug|Sept?|O[ck]t|Nov|Dec|PhD|BSc|BEng|BComp|BArch|al|cf|Inc|Ms|MEng|MSc|MComp|Gen|Sen|Prof|Corp|Co|co|Ltd|Buchst)\.[\u00A0\s]</beforebreak>
|
4959
4972
|
<afterbreak></afterbreak>
|
4960
4973
|
</rule>
|
4961
4974
|
<!-- Latin abbreviations - but these work globally for all languages -->
|
@@ -4965,11 +4978,11 @@
|
|
4965
4978
|
</rule>
|
4966
4979
|
<!-- German abbreviations -->
|
4967
4980
|
<rule break="no">
|
4968
|
-
<beforebreak>\b(ggü|Mag|mtl|versch|d|Übers|usw|Bzw|bzw|Ab[hkst]|abzgl|bezgl|Abzw|ahd|Akk|aktual|allg|alltagsspr|altdt|alttest|amerikan|Anh|Ank|Anm|Art|autom|Auftragsnr|Az|Bat|bayr|Bde?|bearb|Bed|Bem|bes|bez|Bez|Bhf|bspw|btto|bw)\.[\u00A0\s]</beforebreak>
|
4981
|
+
<beforebreak>\b(ggü|Mag|mtl|versch|d|Übers|usw|Bzw|bzw|Ab[hkst]|abzgl|[Ee]inschl|[Vv]mtl|bezgl|Abzw|[Vv]sl|ahd|Akk|aktual|allg|alltagsspr|altdt|alttest|amerikan|Anh|Ank|Anm|Art|autom|Auftragsnr|Az|Bat|bayr|Bde?|bearb|Bed|Bem|bes|bez|Bez|Bhf|bspw|btto|bw|Dtl|Dez)\.[\u00A0\s]</beforebreak>
|
4969
4982
|
<afterbreak></afterbreak>
|
4970
4983
|
</rule>
|
4971
4984
|
<rule break="no">
|
4972
|
-
<beforebreak>\b(cts?|Ca|ca|chem|chin|Chr|cresc|dat|Dat|desgl|ders|dgl|Dipl|Dir?|Doz?|durchg|durchges|Dr|dt|ebd|Ed|eigtl|Eigtl|eigl|Eigl|akt|Engl|engl|Erg|al|et[cw]|Etw|ev(tl)?|Evtl|exkl|Expl|Exz)\.[\u00A0\s]</beforebreak>
|
4985
|
+
<beforebreak>\b(cts?|Ca|ca|chem|chin|Chr|cresc|dat|Dat|desgl|ders|dgl|Dipl|Dir?|Doz?|durchg|durchges|Dr|dt|ebd|Ed|eigtl|Eigtl|eigl|Eigl|akt|Engl|engl|Erg|al|et[cw]|Etw|ev(tl)?|Evtl|Evt|evt|exkl|Expl|Exz)\.[\u00A0\s]</beforebreak>
|
4973
4986
|
<afterbreak></afterbreak>
|
4974
4987
|
</rule>
|
4975
4988
|
<rule break="no">
|
@@ -4977,7 +4990,7 @@
|
|
4977
4990
|
<afterbreak></afterbreak>
|
4978
4991
|
</rule>
|
4979
4992
|
<rule break="no">
|
4980
|
-
<beforebreak>\b(ff|Fa|fachspr|fam|fem|Fem|Fr|franz|frz?|frdl|Frl|Fut|Gd|gebr?|Gebr|geh|geleg|gen|Gen|germ|gesch|ges|get|ggf|Ggf|Ggs|ggT|Gr|[Gg]rds|griech)\.[\u00A0\s]</beforebreak>
|
4993
|
+
<beforebreak>\b(ff|Fa|fachspr|fam|fem|Fem|Fr|franz|frz?|[Aa]ltfranz|frdl|Frl|Fut|Gd|gebr?|Gebr|geh|geleg|gen|Gen|germ|gesch|ges|get|ggf|Ggf|Ggs|ggT|Gr|[Gg]rds|griech)\.[\u00A0\s]</beforebreak>
|
4981
4994
|
<afterbreak></afterbreak>
|
4982
4995
|
</rule>
|
4983
4996
|
<rule break="no">
|
@@ -5444,6 +5457,10 @@
|
|
5444
5457
|
<beforebreak>\bCo\.[\s\u00A0]</beforebreak>
|
5445
5458
|
<afterbreak></afterbreak>
|
5446
5459
|
</rule>
|
5460
|
+
<rule break="no">
|
5461
|
+
<beforebreak>\bE\.[\s\u00A0]</beforebreak>
|
5462
|
+
<afterbreak>\b[Cc]oli\b</afterbreak>
|
5463
|
+
</rule>
|
5447
5464
|
<!-- Break rules -->
|
5448
5465
|
<rule break="yes">
|
5449
5466
|
<beforebreak>[\.!?…][\u0002|'|"|«|\)|\]|\}¹²³]?[\s\u00A0]+</beforebreak>
|
@@ -5516,7 +5533,7 @@
|
|
5516
5533
|
<!-- І. Коваль -->
|
5517
5534
|
<rule break="no">
|
5518
5535
|
<beforebreak>[\h\v.]([А-ЯІЇЄҐACEIHOPX]\.-)?(?<!°)[А-ЯІЇЄҐABCEIHOPX](?<!(Куан[\h]+Ю|(Петр|Олександр)([аоу]|ові|ом)?[\h]+[IІ]+))\.[\h\v]*</beforebreak>
|
5519
|
-
<afterbreak>
|
5536
|
+
<afterbreak>[А-ЯІЇЄҐ][а-яіїєґА-ЯІЇЄҐ'’ʼ]{3}</afterbreak>
|
5520
5537
|
</rule>
|
5521
5538
|
<!-- Ів. Франко (але Ів Бутільє) -->
|
5522
5539
|
<rule break="no">
|
data/srx-languagetool.gemspec
CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
17
|
spec.metadata['source_code_uri'] = 'https://github.com/amake/srx-languagetool-ruby.git'
|
18
18
|
spec.metadata['changelog_uri'] = 'https://github.com/amake/srx-languagetool-ruby/blob/master/CHANGELOG.md'
|
19
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
19
20
|
|
20
21
|
# Specify which files should be added to the gem when it is released.
|
21
22
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: srx-languagetool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Madlon-Kay
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: srx
|
@@ -141,6 +141,7 @@ metadata:
|
|
141
141
|
homepage_uri: https://github.com/amake/srx-languagetool-ruby
|
142
142
|
source_code_uri: https://github.com/amake/srx-languagetool-ruby.git
|
143
143
|
changelog_uri: https://github.com/amake/srx-languagetool-ruby/blob/master/CHANGELOG.md
|
144
|
+
rubygems_mfa_required: 'true'
|
144
145
|
post_install_message:
|
145
146
|
rdoc_options: []
|
146
147
|
require_paths:
|