Skip to content

Commit

Permalink
v0.0.5 started
Browse files Browse the repository at this point in the history
  • Loading branch information
drdhaval2785 committed Jan 13, 2018
1 parent 1add392 commit 2361547
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ jsonindex.json file which was crucial and missed in v0.0.2, added back.
2. Adding data file in system specific locations like APPDATA. See #6 .
3. Made code python 2.7, 3.3, 3.4, 3.5, 3.6 compliant.
4. Corrected all errors / smells identified by landscape.io.

0.0.5 (2018-01-13)
------------------

1. Added verb form generation facility. See https://github.com/drdhaval2785/prakriya/issues/39.
32 changes: 32 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
Usage
=====

prakriya
--------

To use prakriya in a project::

>>> from prakriya import Prakriya
Expand Down Expand Up @@ -77,6 +80,27 @@ Valid values of ``field`` and expected output are as follows.

``vachana`` - Returns the vacana of the given verb form.

Generate verb forms
-------------------

To get verb form for given verb, tense, suffix / (purusha and vachana) in a project::

>>> from prakriya import Generate
>>> g = Generate()

There are two ways to get verb forms for given verb.

>>> g[verb, tense, purusha, vachana]

>>> g[verb, tense, suffix]

Examples are as follows

>>> g['BU', 'law', 'praTama', 'eka']

>>> g['BU', 'law', 'tip']


Transliteration
---------------

Expand All @@ -95,3 +119,11 @@ If you want to set the input or output transliteration, follow these steps.
Valid transliterations are slp1, itrans, hk, iast, devanagari, wx, bengali,
gujarati, gurmukhi, kannada, malayalam, oriya and telugu.
They can be used both as input transliteration and output transliteration schemes.

For using transliterations in Generate class, use as below.

>>> from prakriya import Generate
>>> g = Generate()
>>> g.inputTranslit('hk') # Customize 'hk'
>>> g.outputTranslit('devanagari') # Customize 'devanagari'
>>> g['bhU', 'laT', 'jhi'] # Takes the input in hk Transliteration

0 comments on commit 2361547

Please sign in to comment.