This package can be used to detect, produce Nepali caste.
Project description
Nepali Thar
This is a simple Nepali Thar package. This package can be used to generate list of Nepali surnames and detect them.
Features:
- Split name based on surname.
- Detects the position of Nepali Surname in a text.
- Checks if the words is Nepali Surname or not.
- Gives a list of Nepali Surname's.
How to Import
>>> pip install nepalithar
>>> import nepalithar
>>> thar = nepalithar.Caste()
Check Nepali Surname
>> thar.is_true("Rajesh")
False
>>> thar.is_true("Hamal")
True
Get Random n number of Surname
>> thar.get(3)
['Kutal', 'Shrestha', 'Rapacha']
Get Position of Surname in a text
>> thar.get_position("Rajesh Hamal Madhu Bhattarai")
[1, 3]
Detect Position along with surname
>> thar.detect('Rajesh Hamal Madhu Bhattarai')
[(1, 'Hamal'), (3, 'Bhattarai')]
Split a group of name based on surname
>> thar.split_name("Rajesh Hamal Madhu Bhattarai")
['Rajesh Hamal', 'Madhu Bhattarai']
References:
- Nepali Thar Dataset : https://github.com/amitness/thar
Others:
- Note: Package created during COVID-19 quarantine out-of-boredom.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nepalithar-0.0.2.tar.gz
(38.2 kB
view details)
Built Distribution
File details
Details for the file nepalithar-0.0.2.tar.gz
.
File metadata
- Download URL: nepalithar-0.0.2.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc98ae93d78846554fbe4bafce1b8fbde99bc9a156e22d68718bc6c4fccc6d08 |
|
MD5 | fee376daed51d3e9e583b38a80d08f81 |
|
BLAKE2b-256 | 2e88392009289446e4c082162bd274fb6cdfe5a5e9c4d629478cc82f7127f442 |
File details
Details for the file nepalithar-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: nepalithar-0.0.2-py3-none-any.whl
- Upload date:
- Size: 37.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc7ea9cd3e72c7f2e07235342f9b52fc6bc0a3d24aaa0ce6ca3506b622e9ec94 |
|
MD5 | 57dc280ab5f5f5b7821fe9545a684e13 |
|
BLAKE2b-256 | f93b60a689b847944e91d5526d07dc54a26959443607a95edac11abf1591f800 |