Revi
The utility to remove Vietnamese sign.
Ex: CAO Quảng Bình
-> CAO Quang Binh
.
Installation
Add this line to your application's Gemfile:
gem 'revi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install revi
Usage
class MyAwesomeClass
include Revi::VietnameseSignProcessor
def my_awesome_function
vietnamese_string = 'CAO Quảng Bình'
unsigned = replace_vietnamese_sign(vietnamese_string)
# unsigned => 'CAO Quang Binh'
end
end
Contributing
- Fork https://gitlab.com/binh.cao/revi
- Create your feature branch (
git checkout -b my-awesome-feature
) - Commit your changes (
git commit -m 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request with a description of your changes
License
The gem is available as open source under the terms of the MIT License.