Skip to main content

Find the Kashmiri meaning of given English word.

Project description

Kaeshir Dictionary

A free, open source database of Kashmiri words which is my own work and I'm opening it for everyone. You can use, modify and distribute it for any purpose.

pip install kashmiri

You can check my app Kaeshir Dictionary

Use the find() fucntion to get the Kashmiri meaning of corresponding English word as a python dictionary.

>>> from kashmiri import find
>>> from pprint import pprint
>>>
>>> find("admire")
{'title': 'Admire', 'pos': '/ əd-ˈmī(-ə)r/, verb', 'englishMeaning': 'Khosh karun ', 'kashmiriMeaning': 'خۄش کران', 'englishExample': 'I admire Manika.', 'kashmiriExample': 'Winni chai kaem chalan'}
>>>
>>> x = find('about')
>>> pprint(x)
{'englishExample': 'What do you think about me?',
 'englishMeaning': 'Mutalik',
 'kashmiriExample': 'Tsai kya ba:sa:n mai mutalik?',
 'kashmiriMeaning': 'مُتعلِق',
 'pos': '/ ə-ˈbau̇t/, adverb',
 'title': 'About'}
>>> 
  • If the given word is not found, a string saying Not Found will be displayed.
>>> find('grep')
Not Found
>>> 
  • Search is Case Insensitive
>>> find('account')
{'title': 'Account', 'pos': '/ ə-ˈkau̇nt/, noun', 'englishMeaning': 'Hisa:b', 'kashmiriMeaning': 'حِساب', 'englishExample': 'She was asked to give an account of her actions.', 'kashmiriExample': 'Winni chai kaem chalan'}
>>> 
>>> find('aCcOuNt')
{'title': 'Account', 'pos': '/ ə-ˈkau̇nt/, noun', 'englishMeaning': 'Hisa:b', 'kashmiriMeaning': 'حِساب', 'englishExample': 'She was asked to give an account of her actions.', 'kashmiriExample': 'Winni chai kaem chalan'}
>>> 
  • AssertionError will be thrown if you search for some gibberish
>>> find("osama bin laden")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/izan/Documents/Kaeshir-Database/kashmiri/kashmiri.py", line 5, in find
    assert word.isalpha(), "You might be a Haput, else you could have entered a correct word."
AssertionError: You might be a Haput, else you could have entered a correct word.
>>> 
  • Get access to whole database in the form of tuple using data variable in database file
>>> from kashmiri.database import data
>>> data[0]
{'title': 'Abandoned', 'pos': '/ ə-ˈban-dənd/, adjective', 'englishMeaning': 'Trovmut (m.)', 'kashmiriMeaning': 'ترٛومُت', 'englishExample': 'An abandoned factory.', 'kashmiriExample': 'Akh traivmich factry.'}
>>> 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kashmiri-0.0.2.tar.gz (233.7 kB view details)

Uploaded Source

File details

Details for the file kashmiri-0.0.2.tar.gz.

File metadata

  • Download URL: kashmiri-0.0.2.tar.gz
  • Upload date:
  • Size: 233.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for kashmiri-0.0.2.tar.gz
Algorithm Hash digest
SHA256 49ef1bf3873afe300f51724c2da78176de113e3b684d872bc2206f09c13cc307
MD5 135ac41684529ac26262cb14cfa0e8b6
BLAKE2b-256 07813f62bad5ceee9f8f4ce3e813a8c7526cbc7e53761e0dbcf8ac86e8403711

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page