Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 811 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 811 Bytes

zabda-engine

Sanskrit is a very inflectional language and most words have dhatu (from a list of over 1000 words) or noun roots. The longer term goal of this library is to be able to identify words and provide a quick anlaysis or vigraha. The analysis will assist in understanding a word, its root (dhatu) or noun, and the "pratyaya" that are used to give it its form.

API

  1. inflectPhrase ( identifiers: string[] ): string
  2. extract ( identifier: string, property: string ): any

Identifiers

The Zabda Engine accepts words as identifiers in order to decline nouns/adjectives or conjugate verbs.

devAnAm => devAnAm(deva)SMNP6B

bhavati => bhavati(bhU|1.0001|P)LATPE

iti => (ti)AVY

bhavitum => bhavitum(bhavitum|bhU|1.0001|P)TUMAVY

aitihAsika => aitihAsikasya(aitihAsika|itihAsa)THKVSNP6E