Expand description
Lojban lujvo generation and analysis.
latkerlo_jvotci accepts more words as valid lujvo than CLL does. The
primary differences are that:
- unnecessary hyphens are allowed by default (making e.g. zi’ervla a lujvo
rather than a zi’evla), though
Settingscan fix this - zi’evla can go inside lujvo (making e.g. itku’ilybau a lujvo)
§Quick start
use latkerlo_jvotci::*;
let settings = Settings::default();
let tanru = "blanu zdani";
let lujvo = get_lujvo(tanru, &settings)?; // -> "blazda".to_string()
let veljvo = get_veljvo(&lujvo, &settings)?; // -> vec!["blanu", "zdani"]
assert_eq!(veljvo.join(" "), tanru);Re-exports§
pub use exceptions::Jvonunfli;pub use jvozba::get_lujvo;pub use jvozba::get_lujvo_with_analytics;pub use jvozba::grll;pub use katna::get_veljvo;pub use katna::score_lujvo;pub use rafsi::RAFSI;pub use tarmi::ConsonantSetting;pub use tarmi::SETTINGS_ITERATOR;pub use tarmi::Settings;pub use tarmi::YHyphenSetting;pub use tools::analyze_brivla;pub use tools::is_brivla;pub use tools::normalize;pub use tarmi::ConsonantSetting::*;pub use tarmi::YHyphenSetting::*;
Modules§
- cli_
docs - data
- Various lists of things like consonant clusters. The rafsi list is stored in
rafsiinstead. - exceptions
- Categories of errors.
- jvozba
- Functions for creating a lujvo.
- katna
- Functions for decomposing a lujvo.
- rafsi
- Contains the static RAFSI, a map from words to their affixes.
- tarmi
- Functions for determining the shapes of rafsi and checking simple properties
of characters, and
Settings. - tools
- Functions for analyzing brivla in general (such as
analyze_brivla!)
Macros§
- auto_
to_ string - Auto-implements
Displayon an enum. - extract
- Keeps only certain fields of a
Settingsand replace the rest with their defaults. - strin
- Pythonic
stringindexing. - strsl
- Pythonic
stringslicing.