lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule24.rb in sastrawi-0.1.3 vs lib/sastrawi/morphology/disambiguator/disambiguator_prefix_rule24.rb in sastrawi-0.1.4
- old
+ new
@@ -8,10 +8,10 @@
if contains
matches = contains.captures
return if matches[0] == 'r'
- return matches[0] << matches[1] << 'er' << matches[2] << matches[3]
+ return "#{matches[0]}#{matches[1]}er#{matches[2]}#{matches[3]}"
end
end
end
end
end