{ "info": { "author": "Suraj Regmi", "author_email": "regmi125@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# nepali-roman\n## Package to convert Nepali text to romanized English.\n\nMany a time, while working with data, either from government sector or from private sector, we encounter Nepali names of\nVDCs, municipalities, local level units, districts and places. While merging such data with another datasheet consisting\nnames of units in English, we need to romanize the Nepali names to English before using some text similarity algorithms \nto do string matching.\n\nThis package helps in romanizing Nepali names using rudimentary script. It is worth mentioning that romanization of \nNepali text used in our daily life is inconsistent. For example, the popular romanization of \"\u0928\u0947\u092a\u093e\u0932\" is \"Nepal\". It might\nseem as the correct romanization but if we have to distinguish between \"\u0928\u0947\u092a\u093e\u0932\" and \"\u0928\u0947\u092a\u0932\", we can't do that with this\nromanization scheme. So, this package uses unique and standard romanization scheme such that no two Nepali words have\nsame romanization.\n\n## Installation\n`nepali-roman` package is available for `Python 3` and can be installed using `pip`. \n\nFirst make sure [`pip`](https://pip.pypa.io/en/stable/installing/) is installed.\n\nThen, the package can be installed using this command.\n```\npip install nepali-roman\n```\n\n## Usage\n\nImport the `nepali_roman` module using the following command.\n```python\nimport nepali_roman as nr\n```\nThe `nepali_roman` module has three functions: `is_devanagari`, `romanize_text` and `romanize`.\n\n### `is_devanagari`\nThis function checks if the text is in Devanagari format.\n\n**Detail description**:\nIn the text, it ignores all the punctuations, white spaces and other non-alphanumeric characters and then counts the\nnumber of devanagari characters. If the number of devanagari characters is more than or equal to 50% of the stripped\ntext, the function deems the text devanagari, otherwise not.\n\nSyntax:\n```python\n>>> nr.is_devanagari(text)\n```\n\nExample:\n```python\n>>> import nepali_roman as nr\n>>> nr.is_devanagari(\"\u0928\u0917\u0930\u092a\u093e\u0932\u093f\u0915\u093e\")\n True\n\n>>> nr.romanize_text(\"suraj\u092a\u093e\u0932\u093f\u0915\")\n False\n\n>>> nr.romanize_text(\"suraj\")\n False\n```\n \n \n\n### `romanize_text`\nThis function can be used to romanize the Nepali text to English.\n\nSyntax:\n```python\n>>> nr.romanize_text(nepali_text)\n```\nExample:\n```python\n>>> import nepali_roman as nr\n>>> nr.romanize_text(\"\u0928\u0917\u0930\u092a\u093e\u0932\u093f\u0915\u093e\")\n nagarapaalikaa\n```\n\n### `romanize`\nThis function takes Nepali text file as an input and saves the romanized text in specified output file.\n\nSyntax:\n```python\n>>> nr.romanize(input_file_path, output_file_path)\n```\n\nExample:\n```python\n>>> import nepali_roman as nr\n>>> nr.romanize('nepali.txt', 'romanized_english.txt')\n# this takes Nepali text file nepali.txt and stores romanized English in the file romanized_english.txt\n```\n\n## Contributions\n\nThe package is licenced with The MIT License (MIT) about which details can be found in the [LICENSE](LICENSE) file. As\nthe package is open sourced and requires many improvements and extensions, any contributions are welcome. Any other\nfeedback of any sort are highly welcome.", "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/Suraj1127/nepali-roman", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "nepali-roman", "package_url": "https://pypi.org/project/nepali-roman/", "platform": "", "project_url": "https://pypi.org/project/nepali-roman/", "project_urls": { "Homepage": "https://github.com/Suraj1127/nepali-roman" }, "release_url": "https://pypi.org/project/nepali-roman/0.45.1.1/", "requires_dist": null, "requires_python": "", "summary": "Convert Nepali text to roman English", "version": "0.45.1.1" }, "last_serial": 5953318, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "01bed4a26a34312e94b186166d013fb9", "sha256": "746dee806569bf6ffb461bd3be4be1d204efd62aac6e4352a6e68263e1ece7e6" }, "downloads": -1, "filename": "nepali_roman-0.1.tar.gz", "has_sig": false, "md5_digest": "01bed4a26a34312e94b186166d013fb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1219, "upload_time": "2019-07-29T10:33:47", "url": "https://files.pythonhosted.org/packages/5a/b7/9e62c2c0dabae8ffd14dcfa0832db8de24322683507e68721356df97952e/nepali_roman-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "04b98e4d96fc7211a5d51c7d5ec32427", "sha256": "08d54bb926aec1329109176e2fcf28960a8e5e3973afe3a2bfb12d3579357d29" }, "downloads": -1, "filename": "nepali_roman-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "04b98e4d96fc7211a5d51c7d5ec32427", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3011, "upload_time": "2019-08-07T06:07:23", "url": "https://files.pythonhosted.org/packages/31/54/565fef5408b7798785dfcb9e18e7b44cb94fa48b91f95f257177cae71a9a/nepali_roman-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "79019076cfd74d83095e009165ef68eb", "sha256": "acd19eb648727b23400d517a42dd252e5b2958c86e158f47e542a0416823f7ad" }, "downloads": -1, "filename": "nepali_roman-0.2.tar.gz", "has_sig": false, "md5_digest": "79019076cfd74d83095e009165ef68eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1250, "upload_time": "2019-07-29T10:54:55", "url": "https://files.pythonhosted.org/packages/e8/56/6b14ee4e8565edf9ff23a348e8be7ba221b4af8455a124a9930b73fcfd99/nepali_roman-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "d1fa20d4134f60738f17b68e551f505a", "sha256": "65e796010ee17d6baf2b0c199f0dde1ea319946382db18a215ad2b66accb6fa7" }, "downloads": -1, "filename": "nepali_roman-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "d1fa20d4134f60738f17b68e551f505a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3012, "upload_time": "2019-08-07T06:12:35", "url": "https://files.pythonhosted.org/packages/a0/54/346b3543966c95b41733fc6d66795bb8616dfe9f4974188f539b276bd6a6/nepali_roman-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80be95dc4393a6ef0d8b563f941985d5", "sha256": "97ddda24a2dd048321d689ff8aa10a9bfe56f8f2b6fcb329b06cdaa484a11358" }, "downloads": -1, "filename": "nepali_roman-0.3.tar.gz", "has_sig": false, "md5_digest": "80be95dc4393a6ef0d8b563f941985d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1279, "upload_time": "2019-08-07T06:12:37", "url": "https://files.pythonhosted.org/packages/ad/f3/3aaa6ce47ba8478f484daec8aa16f68a43ac7095425bb9400dff9958ac83/nepali_roman-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "a2a9b068b683e47fc3e1526524804bd1", "sha256": "c5fd7556ffbd3f8abca6cc573b03cf7a5ae9b3dcefdb0da37d7f7371af37b476" }, "downloads": -1, "filename": "nepali_roman-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "a2a9b068b683e47fc3e1526524804bd1", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2970, "upload_time": "2019-08-07T06:19:53", "url": "https://files.pythonhosted.org/packages/33/24/86bb9e9f1c0afec2c558b02af521f328652864e6582201af7ce826901f5b/nepali_roman-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "65c5ebfc694d1f7b4ddcd1d9f9a7d585", "sha256": "a98c762cfa5a974866ab4041dd66724662afef33ad6b033998c176e660b9bb1f" }, "downloads": -1, "filename": "nepali_roman-0.4.tar.gz", "has_sig": false, "md5_digest": "65c5ebfc694d1f7b4ddcd1d9f9a7d585", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1271, "upload_time": "2019-08-07T06:19:54", "url": "https://files.pythonhosted.org/packages/ae/be/3dfbe53877433a7c0505b11b035811f5c831be4e7c24e01a23c5d4bf781a/nepali_roman-0.4.tar.gz" } ], "0.41": [ { "comment_text": "", "digests": { "md5": "1e66b3ba29b8130af2d6c5583f26fcda", "sha256": "b58cd86723ced8f0c8b2fb4e7706bca556cff6956831f8c1197ea919e5d33207" }, "downloads": -1, "filename": "nepali_roman-0.41-py3-none-any.whl", "has_sig": false, "md5_digest": "1e66b3ba29b8130af2d6c5583f26fcda", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2983, "upload_time": "2019-08-07T06:29:43", "url": "https://files.pythonhosted.org/packages/5e/fa/dfd07953b95b0dbec9cb0540ae3528f79062d2443e2b0d313afb533ac8f8/nepali_roman-0.41-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dfa735e3a617ab3226564e57d15721ff", "sha256": "38cd38c9261fe244f1912d503b68dfea837980b8c15de4dc913f7f03eb8a1df9" }, "downloads": -1, "filename": "nepali_roman-0.41.tar.gz", "has_sig": false, "md5_digest": "dfa735e3a617ab3226564e57d15721ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1279, "upload_time": "2019-08-07T06:30:08", "url": "https://files.pythonhosted.org/packages/3f/b2/9bdcf38c87823bf84360c1e5cbdefc2ef747f6e9fca369326a50f6060faa/nepali_roman-0.41.tar.gz" } ], "0.42": [ { "comment_text": "", "digests": { "md5": "e5d895b8152a70a484d99f478e4fdbf8", "sha256": "8df8fdffdbd4e268106e414f272c7f3abf64d48213ff3cf2714612b3b24004a9" }, "downloads": -1, "filename": "nepali_roman-0.42-py3-none-any.whl", "has_sig": false, "md5_digest": "e5d895b8152a70a484d99f478e4fdbf8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2647, "upload_time": "2019-08-07T07:55:47", "url": "https://files.pythonhosted.org/packages/8c/9c/3780fdb7f75c8d0d39f9136c9cb00c53e9fe8ecf73437632abb718cd50f8/nepali_roman-0.42-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "573225ceaadfaed1ba34cf520f346e3a", "sha256": "48fb5ebec649c122d5ac4c9f76f0e656e64b595d66396165d3e1ae83fd67a7c6" }, "downloads": -1, "filename": "nepali_roman-0.42.tar.gz", "has_sig": false, "md5_digest": "573225ceaadfaed1ba34cf520f346e3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1270, "upload_time": "2019-08-07T07:55:49", "url": "https://files.pythonhosted.org/packages/c0/76/8a8c81b971b1209a003bc5fd8aa1320a522d54fd9ee8d0ec33d3ae11e4ec/nepali_roman-0.42.tar.gz" } ], "0.43": [ { "comment_text": "", "digests": { "md5": "e4044db4a26ad4f1a7db735e7dac55e3", "sha256": "8494b8dbc78873c34f444f235ce221cce292bfb1b32df4956144dd4d676dc6b2" }, "downloads": -1, "filename": "nepali_roman-0.43-py3-none-any.whl", "has_sig": false, "md5_digest": "e4044db4a26ad4f1a7db735e7dac55e3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4289, "upload_time": "2019-08-07T12:17:17", "url": "https://files.pythonhosted.org/packages/96/c1/f9feaac030410dd2ee227dc458d8c333856b186b2e1eb0ee0f7617dd6f0b/nepali_roman-0.43-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2d5f6da65cc8b61fc1b8ae7dc5424abe", "sha256": "500aaba89f2a1db07ac4cc7c4f85b21a68ece86ac62c2883d88878b813d0f8ef" }, "downloads": -1, "filename": "nepali_roman-0.43.tar.gz", "has_sig": false, "md5_digest": "2d5f6da65cc8b61fc1b8ae7dc5424abe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3001, "upload_time": "2019-08-07T12:17:18", "url": "https://files.pythonhosted.org/packages/a4/49/bcba44aa7cefdf6317e1335b9b334038b5d4de17da102dbcc85458249019/nepali_roman-0.43.tar.gz" } ], "0.44": [ { "comment_text": "", "digests": { "md5": "8389feebe90c503c5b570047afc2b8ca", "sha256": "965228daa58b79bcb3cf89c483776f469d0e093e876181035561d39d2cf7d56f" }, "downloads": -1, "filename": "nepali_roman-0.44.tar.gz", "has_sig": false, "md5_digest": "8389feebe90c503c5b570047afc2b8ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4058, "upload_time": "2019-09-24T06:37:15", "url": "https://files.pythonhosted.org/packages/42/28/6595efb9ac95359c6b347b4f62718e1578b5cc0a8be6afb9010380f18487/nepali_roman-0.44.tar.gz" } ], "0.45": [ { "comment_text": "", "digests": { "md5": "26f8df2238911883e58e310df13e3c3d", "sha256": "dc017625205346c31b27b945a4f7869adc8e6b08a4bd7b8579a54f4322169df5" }, "downloads": -1, "filename": "nepali_roman-0.45.tar.gz", "has_sig": false, "md5_digest": "26f8df2238911883e58e310df13e3c3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4320, "upload_time": "2019-09-24T07:01:06", "url": "https://files.pythonhosted.org/packages/30/08/421eff8a50aed7cd93bca4fdae0d4d6561add17e04417f09d00eb217c98c/nepali_roman-0.45.tar.gz" } ], "0.45.1": [ { "comment_text": "", "digests": { "md5": "76f50d2be91d7d214e3829721e452cb1", "sha256": "59508fffe1f122c7a59768b47db74badd8a50775968ea3e026f0d331f6b7d25c" }, "downloads": -1, "filename": "nepali_roman-0.45.1.tar.gz", "has_sig": false, "md5_digest": "76f50d2be91d7d214e3829721e452cb1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4894, "upload_time": "2019-10-10T06:17:23", "url": "https://files.pythonhosted.org/packages/9e/fc/d3424f8b436eac24acb09cf33f622ffc01c5bb99b7fefe2ae505dd24802f/nepali_roman-0.45.1.tar.gz" } ], "0.45.1.1": [ { "comment_text": "", "digests": { "md5": "6a7faa55e558d1d010e5f8b1e80fe37c", "sha256": "fa3491580ebdeff3aa577c9522504c5cccef4349e748f26bc1d6b7b069c2f1bf" }, "downloads": -1, "filename": "nepali_roman-0.45.1.1.tar.gz", "has_sig": false, "md5_digest": "6a7faa55e558d1d010e5f8b1e80fe37c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4896, "upload_time": "2019-10-10T06:36:35", "url": "https://files.pythonhosted.org/packages/2f/9f/312daff1108b0eb30b6fb18957a251e3fc05d410aee7f79c2bf4404bc5f5/nepali_roman-0.45.1.1.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "f86855b5f31a0ee0477f701ba9ff0ae7", "sha256": "efd5e2f54092b942c23468ed0e9adf51ab9d980453fd1826779d42a151bd6c67" }, "downloads": -1, "filename": "nepali_roman-0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "f86855b5f31a0ee0477f701ba9ff0ae7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3027, "upload_time": "2019-08-07T06:45:31", "url": "https://files.pythonhosted.org/packages/e1/6e/8d9efa2a95b82ab9a5f0df5ac4f4c3277fc75ee3bb8666e71f7f3fbc4421/nepali_roman-0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8512742f5e5613ff6c29e412ebb3d311", "sha256": "e6a79350c54954b8bd20645d2c145628f22b5236097b217827f7d8960eb30dd4" }, "downloads": -1, "filename": "nepali_roman-0.5.tar.gz", "has_sig": false, "md5_digest": "8512742f5e5613ff6c29e412ebb3d311", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1300, "upload_time": "2019-08-07T06:45:33", "url": "https://files.pythonhosted.org/packages/72/3f/1bd03fcc1848d709f47abed6a44eed6f6f7c1c865c2480fefe951f463797/nepali_roman-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "6306b34e47e9811a99979cb6d5989ead", "sha256": "9d05d30ce87686541a534596910c1dfdf0b3f46ab2c2856799eab32e5d82c63e" }, "downloads": -1, "filename": "nepali_roman-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "6306b34e47e9811a99979cb6d5989ead", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2693, "upload_time": "2019-08-07T07:08:47", "url": "https://files.pythonhosted.org/packages/4f/f2/b0c6716c4ce8787e5a04116d4e57b4cce1cf537097cc1454291e566e3f74/nepali_roman-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fce1619b187ec28c6b2ec9fcb32c8078", "sha256": "94069e0c28e453f940e9719bc19fa869bf612f2603056789d8a23b74c561c11a" }, "downloads": -1, "filename": "nepali_roman-0.6.tar.gz", "has_sig": false, "md5_digest": "fce1619b187ec28c6b2ec9fcb32c8078", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1311, "upload_time": "2019-08-07T07:08:49", "url": "https://files.pythonhosted.org/packages/3c/bf/35af14bec5af73b5abd7be33c79c3944c3e9e037a4d497398028033b86a0/nepali_roman-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "30878e964c98b3270eaaf3a04f73308f", "sha256": "0a18de87e1cce3ffc52be289a20ba0f80af11474d4be7111da4f116f02fc7137" }, "downloads": -1, "filename": "nepali_roman-0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "30878e964c98b3270eaaf3a04f73308f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2692, "upload_time": "2019-08-07T07:12:59", "url": "https://files.pythonhosted.org/packages/a3/ff/69dbe96fc115f98e34edaccdd3eed247fe7b337de4667a82df60953b5d8c/nepali_roman-0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5650227b1fcb36c19697c2acf88e532d", "sha256": "01573618b278a49aee832394b638c940c781626337f5452146012b1914fc30ce" }, "downloads": -1, "filename": "nepali_roman-0.7.tar.gz", "has_sig": false, "md5_digest": "5650227b1fcb36c19697c2acf88e532d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1309, "upload_time": "2019-08-07T07:13:00", "url": "https://files.pythonhosted.org/packages/6a/ba/02b5fa7f44ca9b4bc86d0cab921385ecc52e1e1a3d407107564e8bea7dc5/nepali_roman-0.7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a7faa55e558d1d010e5f8b1e80fe37c", "sha256": "fa3491580ebdeff3aa577c9522504c5cccef4349e748f26bc1d6b7b069c2f1bf" }, "downloads": -1, "filename": "nepali_roman-0.45.1.1.tar.gz", "has_sig": false, "md5_digest": "6a7faa55e558d1d010e5f8b1e80fe37c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4896, "upload_time": "2019-10-10T06:36:35", "url": "https://files.pythonhosted.org/packages/2f/9f/312daff1108b0eb30b6fb18957a251e3fc05d410aee7f79c2bf4404bc5f5/nepali_roman-0.45.1.1.tar.gz" } ] }