sastrawi 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule10.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule11.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule12.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule13a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule13b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule14.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule15a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule15b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule16.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule17a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule17b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule17d.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule18a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule18b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule19.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule1b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule2.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule20.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule21a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule21b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule23.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule24.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule25.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule26a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule26b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule27.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule28a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule28b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule29.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule3.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule30a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule30b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule31a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule31b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule32.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule34.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule35.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule36.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule37a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule37b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule38a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule38b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule39a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule39b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule40a.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule40b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule5.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule6b.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule7.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule8.rb +1 -1
- data/lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule9.rb +1 -1
- data/lib/sastrawi/stemmer/context/context.rb +2 -2
- data/lib/sastrawi/stemmer/stemmer.rb +2 -2
- data/lib/sastrawi/version.rb +1 -1
- data/sastrawi.gemspec +3 -3
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76f20957cffd660eeb6afefa58352d16e55e8f259f22fe31e65a800cea5372e2
|
4
|
+
data.tar.gz: 47a45adb1dd5aec42614ffaf5ab716ca591a3747222a05c61d8f26df8676a18b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0822820839bf44e8605d11b430551e55b93094704b7b3b82098510a2809df3984864388d73dfc4bed07d0989591fb4772f3e25c47192a257d02de23361b71a01'
|
7
|
+
data.tar.gz: a5980e90c5de75fb3d1d7c2137148ee4f93710e0d02a4341910b33156638df93b4cd0ee55f722abee072a52420550f918c813bda8bccdbda541994da6e5d358b
|
data/.travis.yml
CHANGED
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2016-
|
3
|
+
Copyright (c) 2016-2021 Andrias Meisyal
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -99,6 +99,6 @@ Attribution-NonCommercial-ShareAlike 3.0 Unported License][kateglolicense].
|
|
99
99
|
[documentation]: https://www.rubydoc.info/gems/sastrawi/
|
100
100
|
[contributing]: https://github.com/meisyal/sastrawi-ruby/blob/master/CONTRIBUTING.md
|
101
101
|
[license]: https://github.com/meisyal/sastrawi-ruby/blob/master/LICENSE.txt
|
102
|
-
[kateglo]:
|
102
|
+
[kateglo]: https://kateglo.com
|
103
103
|
[kateglolicense]: https://creativecommons.org/licenses/by-nc-sa/3.0/
|
104
104
|
[wiki]: https://github.com/meisyal/sastrawi-ruby/wiki
|
@@ -103,12 +103,12 @@ module Sastrawi
|
|
103
103
|
next unless suffix_removal?(reverse_removal)
|
104
104
|
|
105
105
|
if reverse_removal.removed_part == 'kan'
|
106
|
-
@current_word = reverse_removal.result
|
106
|
+
@current_word = "#{reverse_removal.result}k"
|
107
107
|
|
108
108
|
remove_prefixes
|
109
109
|
return if @dictionary.contains?(@current_word)
|
110
110
|
|
111
|
-
@current_word = reverse_removal.result
|
111
|
+
@current_word = "#{reverse_removal.result}kan"
|
112
112
|
else
|
113
113
|
@current_word = reverse_removal.subject
|
114
114
|
end
|
@@ -70,14 +70,14 @@ module Sastrawi
|
|
70
70
|
|
71
71
|
if suffixes.include?(suffix) && second_match
|
72
72
|
words[0] = second_match[1]
|
73
|
-
words[1] = second_match[2]
|
73
|
+
words[1] = "#{second_match[2]}-#{suffix}"
|
74
74
|
end
|
75
75
|
|
76
76
|
root_first_word = stem_singular_word(words[0])
|
77
77
|
root_second_word = stem_singular_word(words[1])
|
78
78
|
|
79
79
|
if !@dictionary.contains?(words[1]) && root_second_word == words[1]
|
80
|
-
root_second_word = stem_singular_word(
|
80
|
+
root_second_word = stem_singular_word("me#{words[1]}")
|
81
81
|
end
|
82
82
|
|
83
83
|
if root_first_word == root_second_word
|
data/lib/sastrawi/version.rb
CHANGED
data/sastrawi.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler", "~>
|
24
|
-
spec.add_development_dependency "rake", "~>
|
25
|
-
spec.add_development_dependency "rspec", "~> 3.
|
23
|
+
spec.add_development_dependency "bundler", "~> 2.2.14"
|
24
|
+
spec.add_development_dependency "rake", "~> 13.0.1"
|
25
|
+
spec.add_development_dependency "rspec", "~> 3.10.0"
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sastrawi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrias Meisyal
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.2.14
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.2.14
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 13.0.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 13.0.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.
|
47
|
+
version: 3.10.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
54
|
+
version: 3.10.0
|
55
55
|
description: A Ruby library which allows you to stem words in Bahasa Indonesia.
|
56
56
|
email:
|
57
57
|
- andriasonline@gmail.com
|
@@ -154,7 +154,7 @@ homepage: https://github.com/meisyal/sastrawi-ruby
|
|
154
154
|
licenses:
|
155
155
|
- MIT
|
156
156
|
metadata: {}
|
157
|
-
post_install_message:
|
157
|
+
post_install_message:
|
158
158
|
rdoc_options: []
|
159
159
|
require_paths:
|
160
160
|
- lib
|
@@ -169,8 +169,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
169
169
|
- !ruby/object:Gem::Version
|
170
170
|
version: '0'
|
171
171
|
requirements: []
|
172
|
-
rubygems_version: 3.
|
173
|
-
signing_key:
|
172
|
+
rubygems_version: 3.2.13
|
173
|
+
signing_key:
|
174
174
|
specification_version: 4
|
175
175
|
summary: Ruby bindings for Sastrawi
|
176
176
|
test_files: []
|