https://github.com/willem3141/navi-tslamyu
A parser for Na'vi
https://github.com/willem3141/navi-tslamyu
conlang na-vi
Last synced: 3 months ago
JSON representation
A parser for Na'vi
- Host: GitHub
- URL: https://github.com/willem3141/navi-tslamyu
- Owner: Willem3141
- License: mit
- Created: 2019-12-30T19:57:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-07-11T21:20:16.000Z (almost 3 years ago)
- Last Synced: 2025-02-07T01:32:17.248Z (4 months ago)
- Topics: conlang, na-vi
- Language: Nearley
- Homepage:
- Size: 122 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a (currently very incomplete!) parser for the Na'vi language.
It uses Reykunyu's API (at https://reykunyu.wimiso.nl) to parse individual words in the input sentence, and then uses a nearley grammar to parse these tokens into a parse tree.
## Usage
* Install [nearley](https://github.com/kach/nearley): `sudo npm install -g nearley`
* Compile the grammar: `nearleyc navi.ne -o navi.js`
* Parse a sentence: `node runParser.js ""` (or use it programmatically: `tslamyu.doParse(...)`)## Supported grammar features
Only a very limited set of grammar features are supported at the moment:
* nouns
* including conjugated nouns with **fì-/tsa-**, **-fkeyk** and similar affixes
* subclauses attached to nouns by **a**
* genitive attached to nouns
* pronouns
* intransitive verbs
* subjective
* transitive verbs
* agentive
* patientive
* intransitive usage of transitive verb
* copula verbs
* with adjectives or nouns as the predicate
* modal verbs (to do: require **** in the dependent verb)
* **si** verbs
* adjectives
* predicative usage
* attributive usage
* adverbials
* adverbs
* dative
* adpositions
* negation (**ke** / **rä'ä**)Anything else is unsupported for now, including:
* adverbials
* adpositions attached to a noun
* vocatives
* topical
* numbers
* **f**-words
* also **taluna**, **krra**, etc.
* interjections (**kaltxì**, **wiya**)
* **san** / **sìk**
* **fte** and **tsnì** phrases
* verb infixes
* especially **** and **<äp>** don't change transitivity yetMany of these can only be implemented after they are supported in navi-reykunyu first.