HFST-TWOLC(1)
π 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 fromINFILE-o,--output=OUTFILEβ write output transducer toOUTFILE
π 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 formatFORMAT
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-Rand/or-D. no cap.
π the legal bit (yes we're doing this)
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
- debian bookworm: hfst 3.16.0-5 Β· GPL-3.0-or-later
- debian trixie: hfst 3.16.2-1+b1 Β· GPL-3.0-or-later
- nixos 26.05: hfst 3.16.2
- opensuse-leap 16.0: hfst 3.16.0-bp160.1.11 Β· Apache-2.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND GPL-3.0-only
- ubuntu jammy: hfst 3.15.4-2 Β· GPL-3.0-or-later
- ubuntu noble: hfst 3.16.0-5build4 Β· GPL-3.0-or-later
- ubuntu questing: hfst 3.16.2-1
- ubuntu resolute: hfst 3.16.2-1build2 Β· GPL-3.0-or-later
- ubuntu stonking: hfst 3.17.1-6 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms