{ "info": { "author": "Derick Anderson", "author_email": "anderson.derick.w@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Natural Language :: Japanese", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Text Processing :: Linguistic" ], "description": "# About\n\nThis library identifies (kenchi) romanized Japanese family names (myouji),\nlargely in order to split romanized Japanese names into given name and family name.\n\n## Usage\n\n``` python-console\n>>> import myouji_kenchi\n>>> myouji_kenchi.order_names(['Yamada', 'Satoshi'])\n['Satoshi', 'Yamada']\n>>> myouji_kenchi.get_score_as_myouji('Yamada')\n201046.0\n>>> myouji_kenchi.get_score_as_myouji('Satoshi')\n329.0\n>>> transliterator = myouji_kenchi.MyoujiBackTransliteration()\n>>> transliterator.back_transliterate('Yamada')\n[('\u30e4\u30de\u30c0', 201046.0)]\n```\n\n## Background\n\nThe Japanese ordering of a name is `family name` `given name`, \nwhereas the Western ordering is `given name` `family name`.\nWhen a name is written in Japanese script \none can assume it follows that convention.\nHowever,\nwhen a Japanese name is written in Latin characters\nit might be in either order,\ndepending on the context and the author.\nWhile sometimes a person's name can be treated as atomic,\nit is often desirable to know which name is which.\n\nOne major complication is the variety of romanization schemes in active use.\nMost libraries for back transliterating from Latin characters to Japanese script\npresuppose that the romanization scheme for the original transliteration is known.\nOften in the sort of situation \nwhere you do not know the order of a Japanese name\nthe romanization scheme will also be unknown.\nThis library targets Kunrei-shiki, Nihon-shiki, and (Modified) Hepburn,\nwith allowance for the common deviations of \nomitting macrons and apostrophes.\n\n# Installation/Dependencies\n\n1. Install [OpenFst](http://www.openfst.org/).\n\n It is necessary that \n the version of OpenFst and the version of the OpenFst Python binding match.\n Note that OpenFst must be compiled with the `--enable-far` option\n in order to support that binding package. \n\n ``` shell\n wget http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.6.tar.gz\n tar xf openfst-1.6.6.tar.gz\n cd openfst-1.6.6\n ./configure --enable-far\n make\n sudo make install \n ```\n\n2. Pip install myouji-kenchi\n\n ``` shell\n pip install myouji-kenchi\n ```\n\nCompiling OpenFst on OS X can be troublesome. \nMaking sure you have the latest version of your compiler and \nprefixing `pip install` and/or `make` \nwith `CFLAGS=\"-std=c++11 -stdlib=libc++\"` can be helpful.\n\nFor Python dependencies see `setup.py` and `requirements_dev.txt`.\n\n# License\n\nMIT License (see LICENSE file)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/scouty-inc/myouji-kenchi", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "myouji-kenchi", "package_url": "https://pypi.org/project/myouji-kenchi/", "platform": "", "project_url": "https://pypi.org/project/myouji-kenchi/", "project_urls": { "Homepage": "https://github.com/scouty-inc/myouji-kenchi" }, "release_url": "https://pypi.org/project/myouji-kenchi/1.0.1/", "requires_dist": [ "numpy", "openfst (>=1.6.6<1.6.7)", "regex" ], "requires_python": "", "summary": "Determine if romanized Japanese names are family names", "version": "1.0.1" }, "last_serial": 3960586, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "9b1595f259ccab07679fea94853119f4", "sha256": "c34b362c6eb6add088579f4988041233fe506e4c779d336523f9f512335eb911" }, "downloads": -1, "filename": "myouji_kenchi-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9b1595f259ccab07679fea94853119f4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 401694, "upload_time": "2018-06-13T04:39:04", "url": "https://files.pythonhosted.org/packages/8b/53/b731e516b98f5c3719c97a6121d2f11c78690d1e8c27ad1113d775c56ede/myouji_kenchi-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3425afadecc0d0290f6bf44ef7496ca1", "sha256": "af3197381d9114454768bd7f018c7a0799b116de93b533b4fe87109c575f4c8e" }, "downloads": -1, "filename": "myouji_kenchi-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3425afadecc0d0290f6bf44ef7496ca1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7235, "upload_time": "2018-06-13T04:39:05", "url": "https://files.pythonhosted.org/packages/b9/a3/bcd014e2ec43a6c776af7966d28741216c5982d41c875116b2f0089080ad/myouji_kenchi-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "592294e740dba293cf0677743e9ef2d5", "sha256": "92fefb72a90842b5c4d26db49c398472554300163001102eeca616569e3da1dd" }, "downloads": -1, "filename": "myouji_kenchi-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "592294e740dba293cf0677743e9ef2d5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 401770, "upload_time": "2018-06-14T09:00:47", "url": "https://files.pythonhosted.org/packages/74/b6/1f1e30e10a3b785f5006931724330cf6d97669048d30bba6d284101bb610/myouji_kenchi-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5ced6105c3c3b00906559ab87f89ad54", "sha256": "9e82343dd98c001883321b3be4e52ce1cbcf37e0560e32f950e16fe7e88ad6e4" }, "downloads": -1, "filename": "myouji_kenchi-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5ced6105c3c3b00906559ab87f89ad54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7317, "upload_time": "2018-06-14T09:00:49", "url": "https://files.pythonhosted.org/packages/40/da/d721a686b2694426ffff561ad70915606888a27307127ac026d3dd7bf707/myouji_kenchi-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "592294e740dba293cf0677743e9ef2d5", "sha256": "92fefb72a90842b5c4d26db49c398472554300163001102eeca616569e3da1dd" }, "downloads": -1, "filename": "myouji_kenchi-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "592294e740dba293cf0677743e9ef2d5", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 401770, "upload_time": "2018-06-14T09:00:47", "url": "https://files.pythonhosted.org/packages/74/b6/1f1e30e10a3b785f5006931724330cf6d97669048d30bba6d284101bb610/myouji_kenchi-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5ced6105c3c3b00906559ab87f89ad54", "sha256": "9e82343dd98c001883321b3be4e52ce1cbcf37e0560e32f950e16fe7e88ad6e4" }, "downloads": -1, "filename": "myouji_kenchi-1.0.1.tar.gz", "has_sig": false, "md5_digest": "5ced6105c3c3b00906559ab87f89ad54", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7317, "upload_time": "2018-06-14T09:00:49", "url": "https://files.pythonhosted.org/packages/40/da/d721a686b2694426ffff561ad70915606888a27307127ac026d3dd7bf707/myouji_kenchi-1.0.1.tar.gz" } ] }