Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/phonetic/core_ext/string/nysiis.rb,
lib/phonetic/core_ext/string/soundex.rb,
lib/phonetic/core_ext/string/metaphone.rb,
lib/phonetic/core_ext/string/caverphone.rb,
lib/phonetic/core_ext/string/dm_soundex.rb,
lib/phonetic/core_ext/string/caverphone2.rb,
lib/phonetic/core_ext/string/refined_soundex.rb,
lib/phonetic/core_ext/string/double_metaphone.rb
Instance Method Summary collapse
-
#caverphone(options = {}) ⇒ Object
Caverphone value of string.
-
#caverphone2(options = {}) ⇒ Object
Caverphone 2 value of string.
-
#dm_soundex(options = {}) ⇒ Object
D-M Soundex values of string.
-
#double_metaphone(options = { size: 4 }) ⇒ Object
(also: #metaphone2)
Double Metahpone code of string.
-
#metaphone(options = { size: 4 }) ⇒ Object
Metaphone value of string.
-
#nysiis(options = { trim: true }) ⇒ Object
Caverphone value of string.
-
#refined_soundex(options = { trim: true }) ⇒ Object
Refined Soundex value of string.
-
#soundex(options = { trim: true }) ⇒ Object
Soundex value of string.
Instance Method Details
#caverphone(options = {}) ⇒ Object
Caverphone value of string
8 9 10 |
# File 'lib/phonetic/core_ext/string/caverphone.rb', line 8 def caverphone( = {}) Phonetic::Caverphone.encode(self, ) end |
#caverphone2(options = {}) ⇒ Object
Caverphone 2 value of string
8 9 10 |
# File 'lib/phonetic/core_ext/string/caverphone2.rb', line 8 def caverphone2( = {}) Phonetic::Caverphone2.encode(self, ) end |
#dm_soundex(options = {}) ⇒ Object
D-M Soundex values of string.
9 10 11 |
# File 'lib/phonetic/core_ext/string/dm_soundex.rb', line 9 def dm_soundex( = {}) Phonetic::DMSoundex.encode(self, ) end |
#double_metaphone(options = { size: 4 }) ⇒ Object Also known as: metaphone2
Double Metahpone code of string.
13 14 15 |
# File 'lib/phonetic/core_ext/string/double_metaphone.rb', line 13 def ( = { size: 4 }) Phonetic::DoubleMetaphone.encode(self, ) end |
#metaphone(options = { size: 4 }) ⇒ Object
Metaphone value of string.
9 10 11 |
# File 'lib/phonetic/core_ext/string/metaphone.rb', line 9 def ( = { size: 4 }) Phonetic::Metaphone.encode(self, ) end |
#nysiis(options = { trim: true }) ⇒ Object
Caverphone value of string.
9 10 11 |
# File 'lib/phonetic/core_ext/string/nysiis.rb', line 9 def nysiis( = { trim: true }) Phonetic::NYSIIS.encode(self, ) end |
#refined_soundex(options = { trim: true }) ⇒ Object
Refined Soundex value of string.
9 10 11 |
# File 'lib/phonetic/core_ext/string/refined_soundex.rb', line 9 def refined_soundex( = { trim: true }) Phonetic::RefinedSoundex.encode(self, ) end |