@lingdocs/pashto-inflector (9.2.5)

Published 2026-08-07 11:56:14 +00:00 by lingdocs in lingdocs/pashto-inflector

Installation

@lingdocs:registry=
npm install @lingdocs/pashto-inflector@9.2.5
"@lingdocs/pashto-inflector": "9.2.5"

About this package

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

Dependencies

Dependencies

ID Version
@fortawesome/fontawesome-free ^5.15.2
@types/lokijs ^1.5.14
bootstrap 4.6.1
edit-distance ^1.0.5
json-edit-react ^1.28.2
levenshtein-edit-distance ^3.0.1
lokijs ^1.5.12
lz-string ^1.5.0
markdown-to-jsx ^7.7.13
micro-memoize ^4.1.3
optics-ts ^2.4.1
rambda ^10.3.2
react ^19.1.1
react-bootstrap 2.10.10
react-dom ^19.1.1
react-select ^5.10.2
use-debounce ^10.0.6

Development dependencies

ID Version
@eslint/js ^9.35.0
@types/jest ^30.0.0
@types/react ^19.1.12
@types/react-dom ^19.1.9
@vitejs/plugin-react ^5.0.2
eslint ^9.35.0
eslint-config-flat-gitignore ^2.1.0
eslint-formatter-unix ^8.40.0
eslint-plugin-react-hooks ^5.2.0
eslint-plugin-react-refresh ^0.4.20
globals ^16.3.0
jest ^30.1.3
jest-environment-jsdom ^30.1.2
jest-extended ^6.0.0
jiti ^2.5.1
netlify ^23.5.0
ts-jest ^29.4.1
ts-node ^10.9.2
tsc-alias ^1.8.16
tsx ^4.20.5
typescript ^5.9.2
typescript-eslint ^8.42.0
vite ^7.1.4
Details
npm
2026-08-07 11:56:14 +00:00
4
(MIT OR Apache-2.0)
latest
720 KiB
Assets (1)
Versions (7) View all
9.2.5 2026-08-07
9.2.4 2026-08-07
9.2.3 2026-07-19
9.2.2 2026-07-19
9.2.1 2026-07-10