clausewitz-spelling 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/clausewitz/spelling/checker.rb +1 -1
- data/lib/clausewitz/spelling/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4014a78444b4229f57cc23e9bc8d02fbdb31acae
|
4
|
+
data.tar.gz: b7fe59713b71f23c3ffed9d297c1af91a8d667b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f9f4a9c0cf05519b35122469c938a1a2bc99a059222c19007d86afc59a7bbdf9bcc9bcea510a9295df0c73886a45859e68cea4b19fcdb52cfcfd58b2c7dc843
|
7
|
+
data.tar.gz: e247e1f39f9867fd518525860e67975e172474f0a23a754fa4412e66c35c42c504452650dc8dbb2bf2ea331e1e89d45e3077e9030a5282e8ffb9a1426b2c42ab
|
data/Gemfile.lock
CHANGED
@@ -83,7 +83,7 @@ module Clausewitz; module Spelling
|
|
83
83
|
def check_entry(key, text)
|
84
84
|
misspellings = []
|
85
85
|
text = preprocess_entry(text)
|
86
|
-
text.split(
|
86
|
+
text.split(/(\s|—)/).each_with_index do |word, index|
|
87
87
|
unless check_word(word) || misspellings.any? { |ms| ms.misspelled_word == word }
|
88
88
|
misspellings << CheckResult.new(word, suggest_words(word))
|
89
89
|
end
|