fonemas 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/fonemas.rb +10 -7
- data/lib/fonemas/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzZmMDM2Y2FlNDhkMWJhOWJlNDM4ZTRiODViNzllZjMxODQ3ODQ5ZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Zjg0MzZhYzFjOThhOGE4YmY0NzRmNmI1YmI4Y2YxNmY5MTlkOGQxNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGE5ODQzMzhjYWU0MWM5ZDcwNzI5NjBlNzJmYTFiMTllMDY3Y2I3YjEyMWIz
|
10
|
+
ZGVlZTQ4NDdmZjRiZTBmN2Y3Mzc3ZTAyNDE4MzdkN2E2ZjlmNmFkM2U5NGRj
|
11
|
+
NTUwYzc1MDE4YWI2NDZlNmI3YzBkYmRiZWYxYjA2ZjYwYjczMjk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDMzZDc4NmQ0YWRkNWQ3YTYwODM2YTYwMzg0NmUzNTU1MDc0YWFmMjc4NjVm
|
14
|
+
OGEyOGZiNGNlYzc0YzQxNTk3ZmNlZjgzM2MzOGJmYzFlYzZhMWQ1NDRiYTlk
|
15
|
+
ODgzNDQxYzIwYmY1YWU3MTAwMjdjOTAyZmRjODk5NzYwMGIzZTg=
|
data/lib/fonemas.rb
CHANGED
@@ -2,6 +2,11 @@
|
|
2
2
|
require "fonemas/version"
|
3
3
|
|
4
4
|
module Fonemas
|
5
|
+
|
6
|
+
def self.version
|
7
|
+
VERSION
|
8
|
+
end
|
9
|
+
|
5
10
|
def self.clean(text)
|
6
11
|
s = text.gsub(/,/,' ')
|
7
12
|
s = s.gsub(/\s+/,' ')
|
@@ -211,16 +216,14 @@ module Fonemas
|
|
211
216
|
when 'ü' then
|
212
217
|
fonema << 'u'
|
213
218
|
when 'u' then
|
214
|
-
if word[i-1] == '
|
219
|
+
if word[i-1] == 'g' and i == 1 and isTonica(word,i+1)
|
220
|
+
fonema << ['gu','']
|
221
|
+
elsif word[i-1] == 'q' or word[i-1] == 'g'
|
215
222
|
#nada
|
216
|
-
|
217
|
-
if word[i-1] == 'g' and i == 1
|
218
|
-
fonema << 'gu'
|
219
|
-
elsif isTonica(word,i)
|
223
|
+
elsif isTonica(word,i)
|
220
224
|
fonema << 'uu'
|
221
|
-
|
225
|
+
else
|
222
226
|
fonema << 'u'
|
223
|
-
end
|
224
227
|
end
|
225
228
|
when 'v' then
|
226
229
|
fonema << 'b'
|
data/lib/fonemas/version.rb
CHANGED