Skip to content

v0.3.4 — FFI panic safety, small numbers as words, ITN fixes

Latest

Choose a tag to compare

@Alex-Wengg Alex-Wengg released this 13 Nov 17:34
· 2 commits to main since this release
2e08564

A panic inside an FFI call no longer aborts the host app: every nemo_* entry point returns NULL instead, and the three panics behind #108 are fixed (#111).

Also since v0.3.3:

  • English sentence mode has an opt-in small_numbers_as_words that keeps a lone "zero" to "twelve" and "three to five" as words, as NeMo does. It is exposed through NormalizeOptions, the new FFI nemo_normalize_sentence_lang_with_options, WASM and Swift (#109, #113).
  • English ITN: "and" between two whole numbers stays a word, and "one thousand two hundred dollars" reads $1200 instead of $100200 (#110, #112). "twenty twenty" and other twenty + tens years read as years (#105).
  • English TN reads "St." as "saint" only before a name (#107).
  • Hindi ITN keeps precomposed nukta letters (#106).

The xcframework zip and its SwiftPM checksum are attached by the XCFramework workflow.