phonem_encoder 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +7 -2
- data/lib/phonem_encoder/CHANGELOG +5 -1
- data/lib/phonem_encoder/version.rb +1 -1
- data/lib/phonem_encoder.rb +10 -0
- metadata +3 -3
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PHONEM Encoder
|
|
2
2
|
|
|
3
3
|
Encode a string with the PHONEM algorithm. This gem can be used for finding strings by their phonetic sound - optimized for the german language.
|
|
4
4
|
|
|
@@ -30,6 +30,11 @@ Call `phonetic_encode` on any string to get the phonetic code of the string.
|
|
|
30
30
|
This will output "mylr"
|
|
31
31
|
|
|
32
32
|
|
|
33
|
+
## Documentation
|
|
34
|
+
|
|
35
|
+
[http://rubydoc.info/gems/phonem_encoder/frames](http://rubydoc.info/gems/phonem_encoder/frames)
|
|
36
|
+
|
|
37
|
+
|
|
33
38
|
## Development
|
|
34
39
|
|
|
35
40
|
Questions or problems? Please post them on the [issue tracker](https://github.com/arndttouby/phonem_encoder/issues).
|
|
@@ -44,4 +49,4 @@ Questions or problems? Please post them on the [issue tracker](https://github.co
|
|
|
44
49
|
5. Create new Pull Request
|
|
45
50
|
|
|
46
51
|
|
|
47
|
-
This gem is
|
|
52
|
+
This gem is created by Arndt Touby and is under the MIT License.
|
data/lib/phonem_encoder.rb
CHANGED
|
@@ -64,6 +64,16 @@ module PhonemEncoder
|
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
|
|
68
|
+
# To Encode a string based on the PHONEM algorithm, call <tt>encode_string</tt>
|
|
69
|
+
# on any String.
|
|
70
|
+
#
|
|
71
|
+
# "Müller".encode_string
|
|
72
|
+
#
|
|
73
|
+
# This will output "mylr".
|
|
74
|
+
#
|
|
75
|
+
# This can be used for finding strings by their phonetic sound.
|
|
76
|
+
# It is optimized for the german language.
|
|
67
77
|
def phonetic_code
|
|
68
78
|
PhonemEncoder.encode_string self.to_s
|
|
69
79
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phonem_encoder
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Arndt Touby
|