vlazba
A Rust library and CLI for Lojban lujvo (compound word) generation and analysis.
Implements the gismu clash and jvozba algorithms described in The Complete Lojban Language.
Features
- Generates gismu based on input from transliterations of words in multiple languages
- Creates lujvo using the jvozba algorithm
- Customizable language weighting
- Efficient Rust implementation
Installation
-
Ensure you have Rust installed and up to date:
-
Clone the repository and build the project:
-
Install the CLI tool:
As a Library
Add to your Cargo.toml:
[]
= "0.7"
Basic usage:
use ;
let results = jvozba;
assert!;
// Analyze existing lujvo
let decomposition = jvokaha.unwrap;
CLI Usage
Gismu Generation
Basic usage:
Example:
Custom weights:
Lujvo Creation (jvozba)
To create lujvo using the jvozba algorithm:
Examples:
Lujvo Reconstruction
To reconstruct a lujvo from its components:
Options:
--exp-rafsi: Include experimental rafsi in reconstruction--forbid-cmevla: Forbid cmevla (name words) in reconstruction
Examples:
Lujvo Decomposition (jvokaha)
To split lujvo using the jvokaha algorithm:
Examples:
Options
-w, --weights: Specify custom language weights (default: 0.347,0.196,0.160,0.123,0.089,0.085)-s, --shapes: Define gismu candidate shapes (default: "ccvcv,cvccv")-a, --all-letters: Use all available letters instead of only those in input words-d, --deduplicate: Path to existing gismu list for deduplication--jvozba: Use jvozba function to create lujvo instead of gismu generation--forbid-la-lai-doi: Forbid 'la', 'lai', 'doi' in lujvo when using jvozba--jvokaha: Use jvokaha function to split lujvo into components--exp-rafsi: Include experimental rafsi when generating lujvo
Debug
RUST_BACKTRACE=full
Background
This project is a Rust rewrite of the original gimyzba and its Python port. It aims to provide a more efficient and maintainable implementation of the gismu generation algorithm. Additionally it ports jvozba algorithm for getting lujvo creation functionality.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the GNU GENERAL PUBLIC LICENSE.