HFST-TWOLC(1)

πŸ“¦
version 3.17.1 Β· 2 versions
  • 3.17.1 Β· debian bookworm, debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 3.17.3 Β· nixpkgs unstable
, in debian bookworm, debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

hfst-twolc β€” literally just =, bestie, that's what the manpage says and I'm not about to argue with it 🫢


✨ SYNOPSIS ✨

hfst-twolc [OPTIONS...] INFILE

🌸 DESCRIPTION 🌸

okay so. here's the whole vibe, three ways to run it:

Usage: hfst-twolc [OPTIONS...] -i INFILE
Usage: hfst-twolc [OPTIONS...] --input=INFILE
Usage: cat INFILE | hfst-twolc [OPTIONS...]

so like, you gotta hand over an input file somehow β€” either with -i, or with --input, or as the last commandline argument, or by piping it in from STDIN. pick your fighter πŸ’…

what it actually does? it reads a twolc grammar, compiles it, and stores it. that's the whole job. iconic behavior honestly. if INFILE is missing, the grammar gets read from STDIN instead. and if you didn't give an output file with -o or --output, the compiled grammar goes straight to STDOUT. no output file? no problem, she'll just talk to your terminal πŸ“’


πŸŽ€ Common options:

  • -h, --help β€” print the help message, like a little map of everything you can do
  • -V, --version β€” print version info, for when you need to know which hfst-twolc you're dealing with
  • -u, --usage β€” print usage (the short version, no lore)
  • -v, --verbose β€” print verbosely while processing, she'll narrate her whole life to you
  • -q, --quiet β€” do not print output, silent treatment era πŸ™ˆ
  • -s, --silent β€” alias of --quiet, same energy, different letter

πŸ¦‹ Input/Output options:

  • -i, --input=INFILE β€” read input transducer from INFILE
  • -o, --output=OUTFILE β€” write output transducer to OUTFILE

🌈 TwolC grammar options:

  • -R, --resolve β€” resolve left-arrow conflicts. drama resolved βœ…
  • -D, --dont-resolve-right β€” don't resolve right-arrow conflicts. leaving that drama UNRESOLVED on purpose
  • -f, --format=FORMAT β€” store result in format FORMAT

FORMAT may be one of openfst-log, openfst-tropical, foma or sfst.

by default FORMAT is openfst-tropical. and by default, right arrow conflicts are resolved and left arrow conflicts are not resolved. that's just the defaults, she has opinions πŸ’…

lowkey important: those defaults are literally the defaults, so if you want the opposite you gotta say so with -R and/or -D. no cap.

hfst-twolc 0 (hfst 3.14.0) Copyright Β© 2010 University of Helsinki,
License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html> This
is free software: you are free to change and redistribute it.  There is
NO WARRANTY, to the extent permitted by law.

⚠️ note the NO WARRANTY part fr fr β€” she's free software, you can change and redistribute her, but she comes as-is. no promises, bestie.

okay that's the whole page!! πŸŽ€ this was the HFST manual, HFST-TWOLC(1), from August 2018, source HFST. go compile a grammar and slay, i'm obsessed πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from