LT-COMPOSE(1)

πŸ’– lt-compose β€” the compiled dictionary composition girlie of Apertium πŸ’–

okay bestie, welcome to the lt-compose(1) page, manual section 1, General Commands Manual vibes only ✨


✨ NAME ✨

lt-compose β€” compiled dictionary composition for Apertium πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

lt-compose transducer1_binary transducer2_binary composed_binary

πŸ’… DESCRIPTION πŸ’…

so lt-compose is the application in charge of composing two compiled dictionaries together, and what it does is match the output-side of transducer1 with the input-side of transducer2. iconic behaviour, truly.

by default, the matches are anchored to initial/final states β€” which means transducer2 has to match full paths. in regex terms? transducer2 is implicitly surrounded by ^ and $. periodt.

but wait, there's more πŸ’« there's also support for letting transducer2 match sub-paths of transducer1. when that happens, the matches become optional, which makes the composition a superset of transducer1. lowkey powerful.

and when we say matching sub-paths, we mean transducer2 can start matching in the midst of paths of transducer2 β€” yes bestie, it says transducer2 twice in the original and we're keeping it exactly like that. in regex terms, transducer2 is implicitly surrounded in .* on both sides. no cap.


🌸 OPTIONS 🌸

  • -i, --inverted β€” apply transducer2 to the input-side (left) of transducer1 instead of the output-side. you'd reach for this when you're altering the forms of an analyser. it's giving "flip the script" 🫢
  • -a, --anywhere β€” let transducer2 match sub-paths instead of requiring matching initial/final states. matches then become optional. freedom, honestly ✨
  • -j, --jobs β€” parallelise composition by using one cpu core per section of transducer1. you can also set the environment variable LT_JOBS=true if you always want parallelisation wherever it's available in lttoolbox. multitasking queen πŸ‘‘

πŸ“ FILES πŸ“

  • transducer1_binary β€” a finite state transducer
  • transducer2_binary β€” a finite state transducer
  • composed_binary β€” a finite state transducer

(three of them. all finite state transducers. we love consistency πŸ’œ)


πŸ¦‹ SEE ALSO πŸ¦‹

apertium(1), apertium-tagger(1), lt-comp(1), lt-expand(1), lt-print(1), lt-trim(1), lt-proc(1)

go read those too, they're the rest of the friend group 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Copyright Β© 2005-2022 Universitat d'Alacant / Universidad de Alicante.

This is free software. You may redistribute copies of it under the terms of the GNU General Public License: https://www.gnu.org/licenses/gpl.html.

free software AND a license link? we stan a legally generous icon πŸ’–


πŸ’€ BUGS πŸ’€

Many... lurking in the dark and waiting for you!

not me reading that at 2am. bestie they are literally in the walls. 😭

and that's the whole page, you ate it up πŸŽ€ written by Apertium, dated September 25, 2022, section 1 of the manual, mwah πŸ’…βœ¨