fst-infl(1)
β¨ fst-match β¨
okay bestie, so this is the page for fst-infl (manual section 1, the "fst-match" one) and honestly? it's a little baddie π
it does exactly one thing and it does it so well. sit down, grab a strawberry π, let's get into it.
π NAME π
fst-match β longest match analyser π¦
like, it matches. the longest one. that's the whole vibe.
πΈ SYNOPSIS πΈ
fst-match [ options ] file [ input-file [ output-file ] ]
three-ish little slots, one tiny tool, we love a low-maintenance icon π
π OPTIONS π
-qβ suppress status messages. she goes quiet. no thoughts, just vibes π€«-hβ print usage information. she tells you how to use her, very helpful, very demure β¨
π¦ DESCRIPTION π¦
okay so fst-match is a longest match analyser, periodt. here's the lineup of what you hand her:
- the first argument is the name of a compact transducer file β and bestie, it has to have been generated by
fst-compiler -c. that part matters, don't skip it π - the second argument is the name of the input file.
- the third argument is the output file.
and now the "if you're lazy" clause, which honestly? iconic:
- if the third argument is missing, output goes to
stdout. no cap. - if the second argument is missing as well, then input is read from
stdin. she's flexible like that π
so what does she actually do? fst-match reads the argument transducer and performs a longest-match analysis of the input string. and like, let me give you the example because it's giving algorithm:
given the transducer <x>:<>ab+<x>:<>, she will analyse the string baabbca as ba<x>abb<x>ca.
the way that just works?? she ate and left no crumbs ππ₯
π BUGS π
if the longest match can be mapped to several target strings, only one of them is printed.
so yeah. she picks one. she does not elaborate. she does not take questions. not me being dramatic about it but that's literally what the manpage says π
π SEE ALSO π
go give these girls some love too, they're all in the same friend group:
fst-compilerfst-morfst-inflfst-parse
iykyk π
π AUTHOR π
Helmut Schmid, Institute for Computational Linguistics, University of Stuttgart Email: schmid@ims.uni-stuttgart.de This software is available under the GNU Public License.
okay that's the whole page, you're so welcome π«Ά
and that's a wrap on the fst-match era of the fst-infl manual β dated March 2005, which is lowkey vintage of her, and honestly the fact that she's still serving longest-match realness all these years later? main character energy fr fr βπ§π
π¦ where this page comes from
- debian bookworm: sfst 1.4.7b-1+b1
- debian trixie: sfst 1.7.0-1 Β· GPL-2.0-or-later
- ubuntu jammy: sfst 1.4.7b-1build2
- ubuntu noble: sfst 1.4.7b-1build2
- ubuntu questing: sfst 1.7.0-1
- ubuntu resolute: sfst 1.7.0-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: sfst 1.7.0-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms