japanese_names 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MmIzYzM1YThjMjlkZGNmMWM4Y2NjNmZkZWY2Y2EzMWQ3MmQyMTkyNg==
5
+ data.tar.gz: !binary |-
6
+ NzRkNTIxOWIzZDY4NzA2MmQyYjIxNmExMTI5ZmY0ZWUxMGNlMTdjNw==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YTdlMGM4OGRmOGNiMTQzNWFiMDkxZmFkZDQ1MzJhZmI5YjEzZmIzZTgxMDIw
10
+ ZWU5OWU0N2NjMWUxYTQwMzBiYTc3N2QyNThhZDM1NmYwZjk1MDc1ODhkODA2
11
+ MWIyM2ZlMjIzOGFjNTA2NWNiYmExMTUxNGRmZGE4ZTcwMmQ0ODU=
12
+ data.tar.gz: !binary |-
13
+ MmQ0MGJiNDA0OGJmNDk1ZmNmNmIyYjNmM2Q1NjYxN2JmNjBiOWZiZjRkMDBj
14
+ YmVhYTdkNDQ1NGNhNDIyMDgyODU4YTFlYWJiOTlhZjM3ODEwOGJlOGI3ZWFi
15
+ ODhkODc4ZWM2MWExZmZkYmJhYzk2Y2RlNGM5ZGE0N2YxZDc1Mzg=
data/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Johnny Shields
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ENAMDICT is Copyright (c) The Electronic Dictionary Research and Development
24
+ Group (http://www.edrdg.org/)
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # JapaneseNames
2
+
3
+ Japanese name parser based on ENAMDIC
4
+
5
+ ## Overview
6
+
7
+ JapaneseNames provides an interface to the [ENAMDIC file](http://www.csse.monash.edu.au/~jwb/enamdict_doc.html).
8
+
9
+ Currently the main method is `split` which, given a kanji and kana representation of a name splits
10
+ into to family/given names.
11
+
12
+ ```ruby
13
+ parser = JapaneseNames::Parser.new
14
+ parser.split('堺雅美', 'さかいマサミ') #=> [['堺', '雅美'], ['さかい', 'マサミ']]
15
+ ```
16
+
17
+
18
+ ## ENAMDICT
19
+
20
+ This library comes packaged with a compacted version of the [ENAMDIC file](http://www.csse.monash.edu.au/~jwb/enamdict_doc.html)
21
+ at `bin/enamdict.min`.
22
+
23
+ This file can be regenerated by `rake enamdict:refresh`, which downloads, extracts, and compiles the ENAMDICT file.
24
+
25
+
26
+ ## TODO
27
+
28
+ * **Additional Methods:** Add additional methods to access the ENAMDICT file.
29
+
30
+ * **Performance:** Currently name lookup takes approx 0.5 sec. Benchmarking and/or a native C
31
+ implementation of the dictionary would be nice.
32
+
33
+ * **Gender Lookup:** Use m/f dictionary flag to infer name gender.
34
+
35
+
36
+ ## Contributing
37
+
38
+ Fork -> Commit -> Spec -> Push -> Pull Request
39
+
40
+
41
+ ## Authors
42
+
43
+ * [@johnnyshields](https://github.com/johnnyshields)
44
+
45
+
46
+ ## Copyright
47
+
48
+ Copyright (c) 2014 Johnny Shields.
49
+
50
+ ENAMDICT is Copyright (c) [The Electronic Dictionary Research and Development Group](http://www.edrdg.org/)
51
+
52
+ See LICENSE for details