srx-languagetool 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b095dc51541d60d446b063cdff16940d7840e7d51891e1f5201117d42089b0da
4
- data.tar.gz: 5376dce7bda3c17a142477a3b19f629e65527c4fb96d540bfa1a853f0ed394f8
3
+ metadata.gz: 037ab00a25a87ba79d5bb760cc4d292aad1289d792edea55d8b05034a2ac0f5f
4
+ data.tar.gz: 760147c7ba571a06943244728a709a02bedcb320244342ba38694a1148091a7b
5
5
  SHA512:
6
- metadata.gz: eb9f0aac7af1e2345842bdaf21917556429d8c887d356430c4c707b18b82d0a54cc46a5b6344247de27113f3ad0730f0d3fa37012f4a7c5c7cf4987dcedcf271
7
- data.tar.gz: 3370f8761982aa574c862f32d9a2702451cb992fa35dd0f842a4116224d448c7a2dd247be0ac2c61cace69f72364963c9072bd72e3fc2c46a3bc948996c8fc61
6
+ metadata.gz: 15184b2b378ab3c2f0667ac6168894583959833403b4181c223eb5cd51a43ab8286c2f9110c1769fd5fb9898aa386cff525e6c170e48bc6aa2247d2cf171126c
7
+ data.tar.gz: e30f82724c3bcb264bde6cf2a99f3ea09eb6815f43a9609b71b2b4bbb1fd2e662cbb1abee2bdfd52035130fee9ed1118fe545f48efb61b103c27acaf29773e2e
@@ -6,7 +6,7 @@ jobs:
6
6
  build:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
- - uses: actions/checkout@v2
9
+ - uses: actions/checkout@v4
10
10
  - name: Set up Ruby
11
11
  uses: ruby/setup-ruby@v1
12
12
  with:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.13.0] - 2024-03-29
4
+
5
+ - Update rules to LanguageTool 6.4
6
+
3
7
  ## [0.12.0] - 2023-10-07
4
8
 
5
9
  - Update rules to LanguageTool 6.3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- srx-languagetool (0.12.0)
4
+ srx-languagetool (0.13.0)
5
5
  srx (< 1.0)
6
6
 
7
7
  GEM
@@ -9,69 +9,72 @@ GEM
9
9
  specs:
10
10
  ast (2.4.2)
11
11
  backport (1.2.0)
12
- benchmark (0.2.1)
12
+ benchmark (0.3.0)
13
13
  byebug (11.1.3)
14
- diff-lcs (1.5.0)
14
+ diff-lcs (1.5.1)
15
15
  e2mmap (0.1.0)
16
- jaro_winkler (1.5.4)
17
- json (2.6.3)
16
+ jaro_winkler (1.5.6)
17
+ json (2.7.1)
18
18
  kramdown (2.4.0)
19
19
  rexml
20
20
  kramdown-parser-gfm (1.1.0)
21
21
  kramdown (~> 2.0)
22
- minitest (5.18.0)
23
- nokogiri (1.14.2-x86_64-darwin)
22
+ language_server-protocol (3.17.0.3)
23
+ minitest (5.22.3)
24
+ nokogiri (1.15.6-x86_64-darwin)
24
25
  racc (~> 1.4)
25
- parallel (1.22.1)
26
- parser (3.2.1.1)
26
+ parallel (1.24.0)
27
+ parser (3.3.0.5)
27
28
  ast (~> 2.4.1)
28
- racc (1.6.2)
29
+ racc
30
+ racc (1.7.3)
29
31
  rainbow (3.1.1)
30
- rake (13.0.6)
31
- regexp_parser (2.7.0)
32
+ rake (13.1.0)
33
+ rbs (2.8.4)
34
+ regexp_parser (2.9.0)
32
35
  reverse_markdown (2.1.1)
33
36
  nokogiri
34
- rexml (3.2.5)
35
- rspec-expectations (3.12.2)
37
+ rexml (3.2.6)
38
+ rspec-expectations (3.13.0)
36
39
  diff-lcs (>= 1.2.0, < 2.0)
37
- rspec-support (~> 3.12.0)
38
- rspec-support (3.12.0)
39
- rubocop (1.48.1)
40
+ rspec-support (~> 3.13.0)
41
+ rspec-support (3.13.1)
42
+ rubocop (1.62.1)
40
43
  json (~> 2.3)
44
+ language_server-protocol (>= 3.17.0)
41
45
  parallel (~> 1.10)
42
- parser (>= 3.2.0.0)
46
+ parser (>= 3.3.0.2)
43
47
  rainbow (>= 2.2.2, < 4.0)
44
48
  regexp_parser (>= 1.8, < 3.0)
45
49
  rexml (>= 3.2.5, < 4.0)
46
- rubocop-ast (>= 1.26.0, < 2.0)
50
+ rubocop-ast (>= 1.31.1, < 2.0)
47
51
  ruby-progressbar (~> 1.7)
48
52
  unicode-display_width (>= 2.4.0, < 3.0)
49
- rubocop-ast (1.28.0)
50
- parser (>= 3.2.1.0)
53
+ rubocop-ast (1.31.2)
54
+ parser (>= 3.3.0.4)
51
55
  ruby-progressbar (1.13.0)
52
- solargraph (0.48.0)
56
+ solargraph (0.50.0)
53
57
  backport (~> 1.2)
54
58
  benchmark
55
- bundler (>= 1.17.2)
59
+ bundler (~> 2.0)
56
60
  diff-lcs (~> 1.4)
57
61
  e2mmap
58
62
  jaro_winkler (~> 1.5)
59
63
  kramdown (~> 2.3)
60
64
  kramdown-parser-gfm (~> 1.1)
61
65
  parser (~> 3.0)
62
- reverse_markdown (>= 1.0.5, < 3)
63
- rubocop (>= 0.52)
66
+ rbs (~> 2.0)
67
+ reverse_markdown (~> 2.0)
68
+ rubocop (~> 1.38)
64
69
  thor (~> 1.0)
65
70
  tilt (~> 2.0)
66
71
  yard (~> 0.9, >= 0.9.24)
67
72
  srx (0.6.0)
68
73
  nokogiri (~> 1.11)
69
- thor (1.2.1)
70
- tilt (2.1.0)
71
- unicode-display_width (2.4.2)
72
- webrick (1.7.0)
73
- yard (0.9.28)
74
- webrick (~> 1.7.0)
74
+ thor (1.3.1)
75
+ tilt (2.3.0)
76
+ unicode-display_width (2.5.0)
77
+ yard (0.9.36)
75
78
 
76
79
  PLATFORMS
77
80
  x86_64-darwin-20
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Srx
4
4
  module Languagetool
5
- VERSION = '0.12.0'
5
+ VERSION = '0.13.0'
6
6
  end
7
7
  end
data/lib/srx/segment.srx CHANGED
@@ -5,7 +5,7 @@
5
5
  <formathandle type="end" include="yes"></formathandle>
6
6
  <formathandle type="isolated" include="no"></formathandle>
7
7
  <okpsrx:options oneSegmentIncludesAll="no" trimLeadingWhitespaces="no" trimTrailingWhitespaces="no" useJavaRegex="yes" useIcu4JBreakRules="no" treatIsolatedCodesAsWhitespace="no"></okpsrx:options>
8
- <okpsrx:sample language="nl" useMappedRules="yes">Wat God buiten Christus is. 2.</okpsrx:sample>
8
+ <okpsrx:sample language="nl" useMappedRules="yes"> ON! is een omroep.</okpsrx:sample>
9
9
  <okpsrx:rangeRule></okpsrx:rangeRule>
10
10
  </header>
11
11
  <body>
@@ -1164,7 +1164,7 @@
1164
1164
  <afterbreak>D\.?</afterbreak>
1165
1165
  </rule>
1166
1166
  <rule break="no">
1167
- <beforebreak>\b([Aa]vg|[Ee]d|pp|[Vv]iz|i\.?[\s\u00A0]*e|[Vvol]|[Rr]col|maj|Lt|[Ff]ig|[Ff]igs|[Vv]iz|[Vv]ols|[Aa]pprox|[Aa]cq|[Ii]ncl?|[Aa]cc|Pres|[Cc]orp|[Ee]x|[Cc]onn|[Dd]ept|[Ll]tda|[Mm]in|[Mm]ax|[Gg]ovt|[Rr]etd|Ing|lb|lbf|ft|c\.?[\s\u00A0]*f|vs|dia|lbs|\d+-(:?oz|kc|in|h[rp]|ml)|M?sec)\.[\s\u00A0]</beforebreak>
1167
+ <beforebreak>\b([Aa]vg|[Ee]d|pp|[Vv]iz|i\.?[\s\u00A0]*e|[Vvol]|[Rr]col|maj|Lt|[Ff]ig|[Ff]igs|[Vv]iz|[Vv]ols|[Aa]pprox|[Aa]cq|[Ii]ncl?|[Ee]xcl|[Aa]cc|Pres|[Cc]orp|[Ee]x|[Cc]onn|[Dd]ept|[Ll]tda|[Mm]in|[Mm]ax|[Gg]ovt|[Rr]etd|Ing|lb|lbf|ft|c\.?[\s\u00A0]*f|vs|dia|lbs|\d+-(:?oz|kc|in|h[rp]|ml)|M?sec)\.[\s\u00A0]</beforebreak>
1168
1168
  <afterbreak>[^\p{Lu}]|I</afterbreak>
1169
1169
  </rule>
1170
1170
  <rule break="no">
@@ -1273,7 +1273,7 @@
1273
1273
  <afterbreak></afterbreak>
1274
1274
  </rule>
1275
1275
  <rule break="no">
1276
- <beforebreak>\bLL\.[\s\u00A0]?[BM]\.[\s\u00A0]</beforebreak>
1276
+ <beforebreak>\bLL\.[\s\u00A0]?[BMD]\.[\s\u00A0]</beforebreak>
1277
1277
  <afterbreak></afterbreak>
1278
1278
  </rule>
1279
1279
  <rule break="no">
@@ -1282,7 +1282,7 @@
1282
1282
  </rule>
1283
1283
  <rule break="no">
1284
1284
  <beforebreak>\bLL\.[\s\u00A0]?</beforebreak>
1285
- <afterbreak>[BM]\.?</afterbreak>
1285
+ <afterbreak>[BMD]\.?</afterbreak>
1286
1286
  </rule>
1287
1287
  <rule break="no">
1288
1288
  <beforebreak>\b[BM]\.[\s\u00A0]?</beforebreak>
@@ -1329,7 +1329,11 @@
1329
1329
  <afterbreak></afterbreak>
1330
1330
  </rule>
1331
1331
  <rule break="no">
1332
- <beforebreak>\bCorp\.[\s\u00A0]</beforebreak>
1332
+ <beforebreak>\b[cC]orp\.[\s\u00A0]</beforebreak>
1333
+ <afterbreak></afterbreak>
1334
+ </rule>
1335
+ <rule break="no">
1336
+ <beforebreak>\b[Rr]eg\.[\s\u00A0]</beforebreak>
1333
1337
  <afterbreak></afterbreak>
1334
1338
  </rule>
1335
1339
  <rule break="no">
@@ -1540,6 +1544,15 @@
1540
1544
  </rule>
1541
1545
  </languagerule>
1542
1546
  <languagerule languagerulename="Dutch">
1547
+ <rule break="no">
1548
+ <beforebreak>\sart\.\s</beforebreak>
1549
+ <afterbreak>[IVX]+[ .]</afterbreak>
1550
+ </rule>
1551
+ <!--Do not break after abbreviation of type a.b.c.-->
1552
+ <rule break="no">
1553
+ <beforebreak>\s([a-z]\.){2,10}\s</beforebreak>
1554
+ <afterbreak></afterbreak>
1555
+ </rule>
1543
1556
  <rule break="yes">
1544
1557
  <beforebreak>[ ]is[.][ ]</beforebreak>
1545
1558
  <afterbreak>[0-9]\.($|[ ])</afterbreak>
@@ -1582,7 +1595,7 @@
1582
1595
  <afterbreak>\p{Ll}</afterbreak>
1583
1596
  </rule>
1584
1597
  <rule break="yes">
1585
- <beforebreak>\s(la|do|del)\sMar\.\s</beforebreak>
1598
+ <beforebreak>\s(la|do|del?)\sMar\.\s</beforebreak>
1586
1599
  <afterbreak></afterbreak>
1587
1600
  </rule>
1588
1601
  <rule break="no">
@@ -1641,6 +1654,14 @@
1641
1654
  <beforebreak>\b(geb|[Gg]em|get|gld|id|[Ii]ncl|ind|inf|ing|intern|[Ss]ec|inz|ir|jhr|jkvr)\.\s</beforebreak>
1642
1655
  <afterbreak></afterbreak>
1643
1656
  </rule>
1657
+ <rule break="yes">
1658
+ <beforebreak>\s(tel|red|min)\.\s</beforebreak>
1659
+ <afterbreak>[A-Z]</afterbreak>
1660
+ </rule>
1661
+ <rule break="yes">
1662
+ <beforebreak>\.(nl|be|com)\.\s</beforebreak>
1663
+ <afterbreak></afterbreak>
1664
+ </rule>
1644
1665
  <rule break="no">
1645
1666
  <beforebreak>\b(jl|jr|kr|kt|lic|ll|lt|lw|max|[Mm]evr|mi|[Mm]in|mld)\.\s</beforebreak>
1646
1667
  <afterbreak></afterbreak>
@@ -1662,6 +1683,10 @@
1662
1683
  <afterbreak>[A-Z]</afterbreak>
1663
1684
  </rule>
1664
1685
  <rule break="yes">
1686
+ <beforebreak>\svitamine [A-Z]\.\s</beforebreak>
1687
+ <afterbreak>[A-Z]</afterbreak>
1688
+ </rule>
1689
+ <rule break="yes">
1665
1690
  <beforebreak>°C\.\s</beforebreak>
1666
1691
  <afterbreak>[A-Z][a-z]</afterbreak>
1667
1692
  </rule>
@@ -1714,6 +1739,34 @@
1714
1739
  <afterbreak>\p{L}\.\s</afterbreak>
1715
1740
  </rule>
1716
1741
  <rule break="no">
1742
+ <beforebreak>\set al\.\s</beforebreak>
1743
+ <afterbreak></afterbreak>
1744
+ </rule>
1745
+ <!--pa. as (wrong) abbrev for pag.-->
1746
+ <rule break="no">
1747
+ <beforebreak>\spa\.\s</beforebreak>
1748
+ <afterbreak>[0-9]</afterbreak>
1749
+ </rule>
1750
+ <!--op. as abbrev for opus-->
1751
+ <rule break="no">
1752
+ <beforebreak>\sop\.\s</beforebreak>
1753
+ <afterbreak>[0-9]|cit\.</afterbreak>
1754
+ </rule>
1755
+ <rule break="no">
1756
+ <beforebreak>\soa\.\s</beforebreak>
1757
+ <afterbreak>[a-z]</afterbreak>
1758
+ </rule>
1759
+ <!--al. as abbrev for alinea-->
1760
+ <rule break="no">
1761
+ <beforebreak>\sal\.\s</beforebreak>
1762
+ <afterbreak>[0-9]</afterbreak>
1763
+ </rule>
1764
+ <!--Break also when the next sentence has no capital-->
1765
+ <rule break="yes">
1766
+ <beforebreak>\s((is|op|in|af|ik|ze|om|me|je|na|nu|al|ja|VS|EU|er|we|tv|he|ga|hè|hé|TV|as|ei|SP|pc|wc|PC|IS|NS|ok|AD|OK|at|OM|cd|VN|it|EK|In|pa|AZ|up|IT|FM|VI|ui|la|CD|CV|pr|ie|cv|WW|GB|Jo|Aa|UK|HD|oa|VU))\.\s</beforebreak>
1767
+ <afterbreak></afterbreak>
1768
+ </rule>
1769
+ <rule break="no">
1717
1770
  <beforebreak>\b\p{L}\.</beforebreak>
1718
1771
  <afterbreak>\p{L}\.</afterbreak>
1719
1772
  </rule>
@@ -1737,6 +1790,10 @@
1737
1790
  <beforebreak>\b\p{Lu}\.\p{Lu}\.\s</beforebreak>
1738
1791
  <afterbreak></afterbreak>
1739
1792
  </rule>
1793
+ <rule break="yes">
1794
+ <beforebreak>\s(op)\sX\.\s</beforebreak>
1795
+ <afterbreak></afterbreak>
1796
+ </rule>
1740
1797
  <rule break="no">
1741
1798
  <beforebreak>[^\.]\s[A-Z]\.\s</beforebreak>
1742
1799
  <afterbreak></afterbreak>
@@ -1771,10 +1828,18 @@
1771
1828
  <afterbreak></afterbreak>
1772
1829
  </rule>
1773
1830
  <rule break="no">
1774
- <beforebreak>\s[A-Z].+!\s</beforebreak>
1831
+ <beforebreak>(^|\s)[A-Z].+!\s</beforebreak>
1832
+ <afterbreak>[a-z]</afterbreak>
1833
+ </rule>
1834
+ <rule break="no">
1835
+ <beforebreak>\s[A-Z].+z\.\s</beforebreak>
1775
1836
  <afterbreak>[a-z]</afterbreak>
1776
1837
  </rule>
1777
1838
  <rule break="no">
1839
+ <beforebreak>\sart\.\s</beforebreak>
1840
+ <afterbreak>[0-9]</afterbreak>
1841
+ </rule>
1842
+ <rule break="no">
1778
1843
  <beforebreak>\b(jan|mrt|mar|jun|jul|aug|sept|okt|sep|spt|nov|dec|.*opp)\.\s</beforebreak>
1779
1844
  <afterbreak>[a-z]</afterbreak>
1780
1845
  </rule>
@@ -5066,11 +5131,11 @@
5066
5131
  </rule>
5067
5132
  <!-- German abbreviations -->
5068
5133
  <rule break="no">
5069
- <beforebreak>\b(betr|Geb|Stk|ggü|Mag|mtl|[Pp]arl|Bsp|versch|[Dd]iesbzgl|[Dd]bzgl[Ss]tellv|d|Übers|usw|[Bb]zw|Ab[hkst]|[Aa]bzü?gl|\d+-tlg|tlg|ggfls|[Ll]tda|[Ee]inschl|[Vv]mtl|Ev|bezgl|lit|Abzw|[Vv]sl|ahd|Akk|aktual|[Öö]ffentl|prof|allg|alltagsspr|altdt|alttest|amerikan|Anh|Ank|Anm|Art|[Aa]utom|Auftragsnr|Az|Bat|bayr|Bde?|bearb|Bed|Bem|bes|bez|Bez|Bhf|Blvd|[Bb]spw|btto|bw|Dtl|[Gg]esetzl|Dez|[Jj]gdfr|[Ee]ff)\.[\u00A0\s]{1,2}</beforebreak>
5134
+ <beforebreak>\b(betr|Geb|Stk|ggü|Mag|mtl|Flgh?|[Pp]arl|Bsp|versch|[Dd]iesbzgl|[Zz]ykl|[Dd]bzgl[Ss]tellv|d|Übers|usw|[Bb]zw|Ab[hkst]|[Ee]ig|[Aa]bzü?gl|\d+-tlg|tlg|[Gg]gfls|[Ff]achspr|[Ll]tda|[Ee]inschl|[Vv]mtl|[Ss]tellv|Ev|[Bb]ezgl|lit|Abzw|[Vv]sl|ahd|Akk|aktual|[Öö]ffentl|prof|allg|alltagsspr|altdt|alttest|amerikan|Anh|Ank|Anm|Art|[Aa]utom|Auftragsnr|Az|Bat|bayr|Bde?|bearb|Bed|Bem|bes|bez|wsl|vsl|Bez|Bhf|Blvd|[Bb]spw|btto|bw|Dtl|[Gg]esetzl|Dez|[Jj]gdfr|[Ee]ff)\.[\u00A0\s]{1,2}</beforebreak>
5070
5135
  <afterbreak></afterbreak>
5071
5136
  </rule>
5072
5137
  <rule break="no">
5073
- <beforebreak>\b(cts?|[Cc]a|chem|chin|Chr|cresc|[Dd]at|desgl|ders|dgl|Dipl|Dir?|Doz?|durchg|durchges|Dr|dt|ebd|Ed|[Ee]igt?l|akt|[Ee]ngl|Erg|al|et[cw]|Etw|ev|[Ee]vtl?|[Ee]xkl|Expl|Exz)\.[\u00A0\s]{1,2}</beforebreak>
5138
+ <beforebreak>\b(cts?|[Cc]a|chem|chin|Chr|cresc|[Dd]at|desgl|ders|dgl|Dipl|Dir?|Doz?|durchg|durchges|Dr|[Dd]t|ebd|Ed|[Ee]igt?l|akt|[Ee]ngl|Erg|al|et[cw]|Etw|ev|[Ee]vtl?|[Ee]xkl|Expl|Exz)\.[\u00A0\s]{1,2}</beforebreak>
5074
5139
  <afterbreak></afterbreak>
5075
5140
  </rule>
5076
5141
  <rule break="no">
@@ -5094,7 +5159,7 @@
5094
5159
  <afterbreak></afterbreak>
5095
5160
  </rule>
5096
5161
  <rule break="no">
5097
- <beforebreak>\b(Part|Per[fs]|Pfd|Pl(ur)?|pl|Plusq|Pos|pp|Prä[ps]|Prät|Pro[vf]|rd|reg|resp|Rhld|rit|Sa|südl|Br|se[ln]|Sept|Sing|sign|So|sog|Sp|Std?|stacc|Str|stud|Subst|sva|svw|sZ)\.[\u00A0\s]{1,2}</beforebreak>
5162
+ <beforebreak>\b(Part|Per[fs]|Pfd|Pl(ur)?|pl|Plusq|Pos|pp|Prä[ps]|Prät|Pro[vf]|rd|reg|resp|Rhld|rit|Sa|südl|Br|se[ln]|Sept|Sing|sign|So|sog|Sp|[Ss]td?|stacc|Str|stud|Subst|sva|svw|sZ)\.[\u00A0\s]{1,2}</beforebreak>
5098
5163
  <afterbreak></afterbreak>
5099
5164
  </rule>
5100
5165
  <rule break="no">
@@ -5227,7 +5292,7 @@
5227
5292
  </rule>
5228
5293
  <rule break="no">
5229
5294
  <beforebreak>\bLL\.\s?</beforebreak>
5230
- <afterbreak>[BM]\.?</afterbreak>
5295
+ <afterbreak>[BMD]\.?</afterbreak>
5231
5296
  </rule>
5232
5297
  <rule break="no">
5233
5298
  <beforebreak>\b[BM]\.\s?</beforebreak>
@@ -5526,7 +5591,7 @@
5526
5591
  <afterbreak></afterbreak>
5527
5592
  </rule>
5528
5593
  <rule break="no">
5529
- <beforebreak>\bLL\.[\s\u00A0]?[BM]\.[\s\u00A0]</beforebreak>
5594
+ <beforebreak>\bLL\.[\s\u00A0]?[BMD]\.[\s\u00A0]</beforebreak>
5530
5595
  <afterbreak></afterbreak>
5531
5596
  </rule>
5532
5597
  <rule break="no">
@@ -5535,7 +5600,7 @@
5535
5600
  </rule>
5536
5601
  <rule break="no">
5537
5602
  <beforebreak>\bLL\.[\s\u00A0]?</beforebreak>
5538
- <afterbreak>[BM]\.?</afterbreak>
5603
+ <afterbreak>[BMD]\.?</afterbreak>
5539
5604
  </rule>
5540
5605
  <rule break="no">
5541
5606
  <beforebreak>\b[BM]\.[\s\u00A0]?</beforebreak>
@@ -5591,6 +5656,14 @@
5591
5656
  <afterbreak>\p{Lu}\p{Ll}</afterbreak>
5592
5657
  </rule>
5593
5658
  </languagerule>
5659
+
5660
+ <languagerule languagerulename="Crimean Tatar">
5661
+ <rule break="no">
5662
+ <beforebreak>\b[0-9]+(\.|:)[0-9][0-9][\s\u00A0\u202F]</beforebreak>
5663
+ <afterbreak></afterbreak>
5664
+ </rule>
5665
+ </languagerule>
5666
+
5594
5667
  <languagerule languagerulename="Ukrainian">
5595
5668
  <!-- when sentence starts with ellipsis: ...Мазій і Юхим теж. -->
5596
5669
  <rule break="no">
@@ -5791,7 +5864,11 @@
5791
5864
  <!-- статус правових держав. — Авт.). -->
5792
5865
  <rule break="no">
5793
5866
  <beforebreak></beforebreak>
5794
- <afterbreak>[\h\v]*[‐-―-][\h\v]*([Рр]ед|[Аа]вт)[\h\v]*\.[\)\]]</afterbreak>
5867
+ <afterbreak>[\h\v]*[‐-―-][\h\v]*([Рр]ед|[Аа]вт)\.[\h\v]*[\)\]]</afterbreak>
5868
+ </rule>
5869
+ <rule break="no">
5870
+ <beforebreak>\b([Рр]ед)\.[\h\v]*</beforebreak>
5871
+ <afterbreak>[А-ЯІЇЄҐ]</afterbreak>
5795
5872
  </rule>
5796
5873
  <!-- Цензор.НЕТ -->
5797
5874
  <rule break="no">
@@ -6837,6 +6914,7 @@
6837
6914
  <languagemap languagepattern="(ML|ml).*" languagerulename="Generic"></languagemap>
6838
6915
  <languagemap languagepattern="(TL|tl).*" languagerulename="Generic"></languagemap>
6839
6916
  <languagemap languagepattern="(AST|ast).*" languagerulename="Generic"></languagemap>
6917
+ <languagemap languagepattern="(CRH|crh).*" languagerulename="Generic"></languagemap>
6840
6918
  <languagemap languagepattern=".*" languagerulename="Default"></languagemap>
6841
6919
  </maprules>
6842
6920
  </body>
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.12.0
4
+ version: 0.13.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: 2023-10-07 00:00:00.000000000 Z
11
+ date: 2024-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: srx