srx-languagetool 0.10.0 → 0.12.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: 638b3fcf903059ad698b170d019a2bf52000e0cf20ee69fbf931e83ad0facb90
4
- data.tar.gz: cee145db2f6fdabed2364cb03b66867f25b70ec0534a826dedea2c44943a6a58
3
+ metadata.gz: b095dc51541d60d446b063cdff16940d7840e7d51891e1f5201117d42089b0da
4
+ data.tar.gz: 5376dce7bda3c17a142477a3b19f629e65527c4fb96d540bfa1a853f0ed394f8
5
5
  SHA512:
6
- metadata.gz: 6593a82667e0ca2f9695ec4c51e68d4df286d2edadd001f46e2399a8111b2af82f4c7c28588c4040511130cf6853354e096c827ba5f5f7d118fac1a476507f8e
7
- data.tar.gz: 775883a45f56a328c31ae2d4d9aa12f72694c62611e4c2b9d93852282715aa537bd624f29d2ffc7408c533411baa5f371058fe06242ffcf9a7c02909db29f8b9
6
+ metadata.gz: eb9f0aac7af1e2345842bdaf21917556429d8c887d356430c4c707b18b82d0a54cc46a5b6344247de27113f3ad0730f0d3fa37012f4a7c5c7cf4987dcedcf271
7
+ data.tar.gz: 3370f8761982aa574c862f32d9a2702451cb992fa35dd0f842a4116224d448c7a2dd247be0ac2c61cace69f72364963c9072bd72e3fc2c46a3bc948996c8fc61
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.12.0] - 2023-10-07
4
+
5
+ - Update rules to LanguageTool 6.3
6
+
7
+ ## [0.11.0] - 2023-07-03
8
+
9
+ - Update rules to LanguageTool 6.2
10
+
3
11
  ## [0.10.0] - 2023-03-29
4
12
 
5
13
  - Update rules to LanguageTool 6.1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- srx-languagetool (0.10.0)
4
+ srx-languagetool (0.12.0)
5
5
  srx (< 1.0)
6
6
 
7
7
  GEM
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Srx
4
4
  module Languagetool
5
- VERSION = '0.10.0'
5
+ VERSION = '0.12.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">De organisatie Doe! is een rare.</okpsrx:sample>
8
+ <okpsrx:sample language="nl" useMappedRules="yes">Wat God buiten Christus is. 2.</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|[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?|[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">
@@ -1540,6 +1540,18 @@
1540
1540
  </rule>
1541
1541
  </languagerule>
1542
1542
  <languagerule languagerulename="Dutch">
1543
+ <rule break="yes">
1544
+ <beforebreak>[ ]is[.][ ]</beforebreak>
1545
+ <afterbreak>[0-9]\.($|[ ])</afterbreak>
1546
+ </rule>
1547
+ <rule break="yes">
1548
+ <beforebreak>(^| )O\.\s</beforebreak>
1549
+ <afterbreak>([A-Z][a-z]{1,3}[ ,:;.!?]|Indië|Wanneer|Kunnen|Sorry)</afterbreak>
1550
+ </rule>
1551
+ <rule break="yes">
1552
+ <beforebreak>\sEd[.]\s</beforebreak>
1553
+ <afterbreak>([A-Z][a-z]{1,3}|Wanneer|Misschien|Daarna|Zoals|Zelfs|Bedankt|Zullen|Vooral|Volgens|Vervolgens)(\s|[,:;])</afterbreak>
1554
+ </rule>
1543
1555
  <rule break="no">
1544
1556
  <beforebreak>\b(sp|SP)</beforebreak>
1545
1557
  <afterbreak>\.[aA]\b</afterbreak>
@@ -1645,6 +1657,18 @@
1645
1657
  <beforebreak>\b(prov|pseud|psych|qty|red|ref|resp|soc|st|tab|tel|temp|prof|tk)\.\s</beforebreak>
1646
1658
  <afterbreak></afterbreak>
1647
1659
  </rule>
1660
+ <rule break="yes">
1661
+ <beforebreak>\sgraden C\.\s</beforebreak>
1662
+ <afterbreak>[A-Z]</afterbreak>
1663
+ </rule>
1664
+ <rule break="yes">
1665
+ <beforebreak>°C\.\s</beforebreak>
1666
+ <afterbreak>[A-Z][a-z]</afterbreak>
1667
+ </rule>
1668
+ <rule break="yes">
1669
+ <beforebreak>[A-Z]&amp;[A-Z]\.\s</beforebreak>
1670
+ <afterbreak>[A-Z][a-z]</afterbreak>
1671
+ </rule>
1648
1672
  <rule break="no">
1649
1673
  <beforebreak>\b([A-Z]|Adr|Chr|Fr|Fred|IJ|Jac|Joh|Ph|St|Th|Tj|v|v\.(\s)?d)\.(\s)?</beforebreak>
1650
1674
  <afterbreak>\p{Lu}</afterbreak>
@@ -1693,6 +1717,10 @@
1693
1717
  <beforebreak>\b\p{L}\.</beforebreak>
1694
1718
  <afterbreak>\p{L}\.</afterbreak>
1695
1719
  </rule>
1720
+ <rule break="yes">
1721
+ <beforebreak>\sik\.\s</beforebreak>
1722
+ <afterbreak>ik\s</afterbreak>
1723
+ </rule>
1696
1724
  <rule break="no">
1697
1725
  <beforebreak>[\.\s]\p{L}{1,2}\.\s</beforebreak>
1698
1726
  <afterbreak>[\p{N}\p{Ll}]</afterbreak>
@@ -1746,6 +1774,14 @@
1746
1774
  <beforebreak>\s[A-Z].+!\s</beforebreak>
1747
1775
  <afterbreak>[a-z]</afterbreak>
1748
1776
  </rule>
1777
+ <rule break="no">
1778
+ <beforebreak>\b(jan|mrt|mar|jun|jul|aug|sept|okt|sep|spt|nov|dec|.*opp)\.\s</beforebreak>
1779
+ <afterbreak>[a-z]</afterbreak>
1780
+ </rule>
1781
+ <rule break="no">
1782
+ <beforebreak>Groen!\s</beforebreak>
1783
+ <afterbreak>[a-z]</afterbreak>
1784
+ </rule>
1749
1785
  <rule break="yes">
1750
1786
  <beforebreak>[.!?…][’'"\u00BB\u2019\u201D\u203A\u00AB\p{Pe}\u0002¹²³]*\s</beforebreak>
1751
1787
  <afterbreak></afterbreak>
@@ -4676,7 +4712,7 @@
4676
4712
  <afterbreak>[XIV\d]+\b</afterbreak>
4677
4713
  </rule>
4678
4714
  <rule break="no">
4679
- <beforebreak>\b([Ee]ds?|[Cc]oords?|\d+(r|n|t|è|é|a|rs|ns|es)|seg|masc|fem|sing|pl|adj|adv|g|kg|m|km|cm|ha|u|h|hrs|s|ss|alt|cant|cast|cert|com|dir|gr|nom|parc|pres|set|Sr|Jr|Admón|Adm|Inc|Co|Hnos|Vda|[VU]d[s]?)\.[\p{Pe}\p{Pf}\p{Pd}"']*[\s\u00A0]</beforebreak>
4715
+ <beforebreak>\b(Ltd|[Ee]ds?|[Cc]oords?|\d+(r|n|t|è|é|a|rs|ns|es)|seg|masc|fem|sing|pl|adj|adv|g|kg|m|km|cm|ha|u|h|hrs|s|ss|alt|cant|cast|cert|com|dir|grs?|nom|parc|pres|set|Sr|Jr|Admón|Adm|Inc|Co|Hnos|Vda|[VU]d[s]?)\.[\p{Pe}\p{Pf}\p{Pd}"']*[\s\u00A0]</beforebreak>
4680
4716
  <afterbreak>[\-¡¿«»"'\u2018\u201C\p{Ps}\u2012\u2013\u2014\u2015\u2053]*\p{Ll}</afterbreak>
4681
4717
  </rule>
4682
4718
  <!-- Any word in acronyms like U.S.A.F or F. B. I. or C. or c.s.p. or p. e. -->
@@ -4826,7 +4862,7 @@
4826
4862
  </rule>
4827
4863
  <!-- Abbreviations that can finish sentences -->
4828
4864
  <rule break="no">
4829
- <beforebreak>\b([Ee]ds?|[Cc]oords?|grs?|Sr|Jr|Admón|Inc|Co|Hnos|Vda|[VUuv]d[s]?)\.[\p{Pe}\p{Pf}\p{Pd}"']*[\s\u00A0]</beforebreak>
4865
+ <beforebreak>\b(Ltd|[Ee]ds?|[Cc]oords?|\d+(r|n|t|è|é|a|rs|ns|es)|seg|masc|fem|sing|pl|adj|adv|g|kg|m|km|cm|ha|u|h|hrs|s|ss|alt|cant|cast|cert|com|dir|grs?|nom|parc|pres|set|Sr|Jr|Admón|Adm|Inc|Co|Hnos|Vda|[VU]d[s]?)\.[\p{Pe}\p{Pf}\p{Pd}"']*[\s\u00A0]</beforebreak>
4830
4866
  <afterbreak>[\-¡¿«»"'\u2018\u201C\p{Ps}\u2012\u2013\u2014\u2015\u2053]*\p{Ll}</afterbreak>
4831
4867
  </rule>
4832
4868
  <!-- Any word in acronyms like U.S.A.F or F. B. I. or C. or c.s.p. or p. e. -->
@@ -5030,7 +5066,7 @@
5030
5066
  </rule>
5031
5067
  <!-- German abbreviations -->
5032
5068
  <rule break="no">
5033
- <beforebreak>\b(betr|Geb|Stk|ggü|Mag|mtl|[Pp]arl|Bsp|versch|[Ss]tellv|d|Übers|usw|[Bb]zw|Ab[hkst]|[Aa]bzü?gl|[Ll]tda|[Ee]inschl|[Vv]mtl|Ev|bezgl|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|bspw|btto|bw|Dtl|Dez)\.[\u00A0\s]{1,2}</beforebreak>
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>
5034
5070
  <afterbreak></afterbreak>
5035
5071
  </rule>
5036
5072
  <rule break="no">
@@ -6568,7 +6604,7 @@
6568
6604
  </rule>
6569
6605
  <!-- German abbreviations -->
6570
6606
  <rule break="no">
6571
- <beforebreak>\b(versch|d|Übers|usw|Ab[hkts]|ahd|Akk|aktual|allg|alltagsspr|altdt|alttest|amerikan|Anh|Ank|Anm|Art|Az|Bat|bayr|Bd|Bde|bearb|Bed|Bem|bes|bez|Bez|Bhf|bspw|btto|bw|bzw)\.\s</beforebreak>
6607
+ <beforebreak>\b(versch|d|Übers|usw|Ab[hkts]|ahd|Akk|aktual|allg|alltagsspr|altdt|alttest|amerikan|Anh|Ank|Anm|Art|Az|Bat|bayr|Bd|Bde|bearb|Bed|Bem|bes|bez|Bez|Bhf|bspw|btto|bw|bzw|pot)\.\s</beforebreak>
6572
6608
  <afterbreak></afterbreak>
6573
6609
  </rule>
6574
6610
  <!--Српске скраћенице-->
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.10.0
4
+ version: 0.12.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-03-29 00:00:00.000000000 Z
11
+ date: 2023-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: srx