TypeScript/React library for Pashto inflection, verb conjugation, phrase generation, text conversion, and more https://pashto-inflector.lingdocs.com
  • TypeScript 99.7%
  • CSS 0.2%
Find a file
lingdocs dafb16e2c2
All checks were successful
ci / ci (push) Successful in 2m21s
Update README.md
Remove obsolete package information
2026-07-24 07:09:56 +00:00
.forgejo/workflows with new ci 2026-07-15 14:26:00 +02:00
.vscode switch to vite 2024-08-12 15:48:31 -04:00
assets try adding cjs bundle to get it working for astro 2024-12-21 15:06:35 -05:00
diagrams more work on parser and fixed some verb conjugation bugs 2023-08-30 17:32:54 +04:00
public switch to vite 2024-08-12 15:48:31 -04:00
src with new way of getting words 2026-07-19 22:40:41 +02:00
vocab fixed issue that was caused by rambda api change 2025-08-23 01:49:37 +05:00
.gitignore try CI 2025-08-29 16:51:17 +05:00
.ncurc.json up 2025-08-30 22:42:47 +05:00
.npmrc try with new registry 2026-07-10 16:26:56 +02:00
.nvmrc switch to vite 2024-08-12 15:48:31 -04:00
benchmark.ts little more benchmarking 2025-09-23 15:08:54 +05:00
check-all-inflections.ts with new way of getting words 2026-07-19 22:40:41 +02:00
eslint.config.ts refactored parse-vp to use parserCombinators - need to check benchmarks to see if this introduces a significant cost 2025-09-22 23:35:39 +05:00
get-mini-dict-and-split-verbs.ts with new way of getting words 2026-07-19 22:40:41 +02:00
get-words.ts with new way of getting words 2026-07-19 22:40:41 +02:00
global.d.ts switch to vite 2024-08-12 15:48:31 -04:00
index.html switch to vite 2024-08-12 15:48:31 -04:00
jest.config.ts getting closer to big refactor - still a wee bit broken 2025-09-22 14:48:44 +05:00
LICENSE switch to GPLv3 license 2022-11-05 16:29:31 +05:00
netlify.toml try CI 2025-08-29 16:51:17 +05:00
package-lock.json with new way of getting words 2026-07-19 22:40:59 +02:00
package.json with new way of getting words 2026-07-19 22:40:59 +02:00
README.md Update README.md 2026-07-24 07:09:56 +00:00
testSetup.ts switch to vite 2024-08-12 15:48:31 -04:00
tsconfig.json refactored parse-vp to use parserCombinators - need to check benchmarks to see if this introduces a significant cost 2025-09-22 23:35:39 +05:00
vite.config.ts switch to vite 2024-08-12 15:48:31 -04:00

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).

Phrase building process

  • The full process of phrase building