pragmatic_segmenter 0.0.7 → 0.0.8

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
  SHA1:
3
- metadata.gz: 0f7d9ee20797db1385cc6b19dd6a9029f51355bc
4
- data.tar.gz: 44a2066e7e3cc3a08e7a53a0a31b35d49687471a
3
+ metadata.gz: 80eb7dfc7aeed8a66ff324dde7a87ea544e55e45
4
+ data.tar.gz: c1f3daf78133d748d6cf02133937dad1e05ef0ee
5
5
  SHA512:
6
- metadata.gz: 6bc171f4cda7cddce161dc2ce1f7acddf0c90a9602316530a7378d48ec26fc41e335c34bd560ecc726c1f6cd16b363d37e153feac0ce11c04b01b67f89983522
7
- data.tar.gz: 498ec2b1e6b8ef8b7f6f07f482e6805ab98cfc5c06d5a53cf074929b6928461876f46457f093e572342f2e716dcdc2914ce040562a20a945b46c48ca0c4af3ef
6
+ metadata.gz: f2c6018bb4d46ccc5ef86bbc548437861fa83cf4948abd09e45d8c4b23c021c48907feb9cd65916a9ef8635ede477f5f0b8e221cb7452b38c236f79a3d0cfa77
7
+ data.tar.gz: d63e6eb39e52306785e491f1bfd1d4196e992e513a857b8893ef9c24fcab95f515dc863789f5040609436dc116efbac608a7ac010c0015fa159535198b1554ea
data/README.md CHANGED
@@ -738,6 +738,9 @@ To test the relative performance of different segmentation tools and libraries I
738
738
  * Add passing spec for new end of sentence abbreviation (EN)
739
739
  * Add roman numeral list support
740
740
 
741
+ **Version 0.0.8**
742
+ * Fix error in `list.rb`
743
+
741
744
  ## Contributing
742
745
 
743
746
  If you find a text that is incorrectly segmented using this gem, please submit an issue.
@@ -161,7 +161,8 @@ module PragmaticSegmenter
161
161
  def other_items_replacement(a, i, alphabet, list_array, txt, parens)
162
162
  return if alphabet & list_array == [] ||
163
163
  !alphabet.include?(list_array[i - 1]) ||
164
- !alphabet.include?(a)
164
+ !alphabet.include?(a) ||
165
+ !alphabet.include?(list_array[i + 1])
165
166
  return if alphabet.index(list_array[i + 1]) - alphabet.index(a) != 1 &&
166
167
  (alphabet.index(list_array[i - 1]) - alphabet.index(a)).abs != 1
167
168
  replace_correct_alphabet_list(a, txt, parens)
@@ -1,3 +1,3 @@
1
1
  module PragmaticSegmenter
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pragmatic_segmenter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin S. Dias