lojban
TypeScript icon, indicating that this package has built-in type declarations

2.0.46 • Public • Published

npm version Twitter

Lojban language

Lojban language parsers and tools

Usage

Install with npm

npm i -S lojban

NPM

All functions

All supported functions can be seen by running

npm test

Lojban alternative orthographies

const lojban = require('lojban');
console.log(lojban.krulermorna('coi ro do'));//la krulermorna orthography
console.log(lojban.rukylermorna('coi ro do'));//Bulgarian/Russian alphabet orthgraphy

Lojban parsers

romoi_lahi_cmaxes is the latest version of the morphological parser la cmaxes

const lojban = require('lojban');
console.log(lojban.romoi_lahi_cmaxes('coi ro do')["te spuda"]);

romoi_lahi_cmaxes object has the following keys:

  • "tcini" that has the value "snada" for a grammatically correct input and "fliba" for incorrect input
  • "te spuda", the actual parse
  • "kampu", a simplified output

Readme

Keywords

none

Package Sidebar

Install

npm i lojban

Weekly Downloads

14

Version

2.0.46

License

ISC

Unpacked Size

27.5 MB

Total Files

71

Last publish

Collaborators

  • lojban