- TypeScript 99.7%
- CSS 0.2%
|
All checks were successful
ci / ci (push) Successful in 2m21s
Remove obsolete package information |
||
|---|---|---|
| .forgejo/workflows | ||
| .vscode | ||
| assets | ||
| diagrams | ||
| public | ||
| src | ||
| vocab | ||
| .gitignore | ||
| .ncurc.json | ||
| .npmrc | ||
| .nvmrc | ||
| benchmark.ts | ||
| check-all-inflections.ts | ||
| eslint.config.ts | ||
| get-mini-dict-and-split-verbs.ts | ||
| get-words.ts | ||
| global.d.ts | ||
| index.html | ||
| jest.config.ts | ||
| LICENSE | ||
| netlify.toml | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| testSetup.ts | ||
| tsconfig.json | ||
| vite.config.ts | ||
pashto-inflector
A pashto inflection, verb conjugation, and phrase-generation engine, as well as functions and components for modifying and displaying Pashto text.
Pashto Inflector Website/Demo
How it works
This library uses a 3-step process to generate gramattically correct Pashto phrases. This 3-step process corresponds directly to Chomsky's tripartrite structure for tranformational generative grammars.
| Pashto Inflector Function | Chomskian Grammar Level | |
|---|---|---|
| 1. | Assemble the phrase tree | Phrase Structure Rules |
| 2. | Inflect the words in tree | Morphophonemic Rules |
| 3. | Arrange the inflected words in order | Transformational Rules |
1. Assemble the phrase tree
Phrase Structure Rules
An abstract syntax tree is created with the various parts of a phrase represented as dictionary entries of the words as well as information about gender, number, and tense, etc. These are arranged in typed structures that allow for arranging NP and APs into verbal or equative phrases.
2. Inflect all the words in the phrase tree
Morphophonemic Rules
The dictionary entries for the words are inflected and conjugated as necessary.
3. Arrange the inflected words
Transformational Rules
The inflected words are arranged into possible phrases with various options for dropping or encliticizing pronouns, and placing the negation particle in the correct place(s).
- The full process of phrase building