- Git: https://github.com/SixArm/sixarm_ruby_unaccent
- Doc: http://sixarm.com/sixarm_ruby_unaccent/doc
- Gem: https://rubygems.org/gems/sixarm_ruby_unaccent
- Contact: Joel Parker Henderson, joel@sixarm.com
- Project: changes, license, contributing.
Replace a string's accent characters with ASCII characters.
Based on Perl Text::Unaccent from CPAN.
For docs go to http://sixarm.com/sixarm_ruby_unaccent/doc
Want to help? We're happy to get pull requests.
To install this gem in your shell or terminal:
gem install sixarm_ruby_unaccent
To add this gem to your Gemfile:
gem 'sixarm_ruby_unaccent'
To require the gem in your code:
require 'sixarm_ruby_unaccent'
French:
require "sixarm_ruby_unaccent"
str = "déjà vu";
str.unaccent => "deja vu";
Greek:
require "sixarm_ruby_unaccent"
str = "νέα" (aka "\x{03AD}\x{03BD}\x{03B1}")
str.unaccent => "νεα" (aka "\x{03B5}\x{03BD}\x{03B1}")