cg-proc(1)

πŸ“¦
version 1.5.1 Β· 2 versions
, in debian trixie, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay so bestie, <rainbow>cg-proc</rainbow> is a thing that exists, and it's part of cg3 (the CG-3 constraint grammar system, if you're keeping score).

This tool is part of the CG-3 constraint grammar system: https://edu.visl.dk/cg3.html β€” yes the whole link, I'm not gatekeeping. 🫢


✨ SYNOPSIS ✨

cg-proc [OPTIONS] grammar_file [input_file [output_file]]

like that's the whole vibe. grammar file is required, input and output are optional, we move. πŸ’…


🌸 DESCRIPTION 🌸

So <purple>cg-proc</purple> is the grammar parser and the disambiguator in the VISL constraint grammar system. What does that actually mean? It looks at a word that a morphological analyser already handed over β€” with all its different analyses, aka "readings" β€” and it picks between them based on a set of grammatical rules. Basically it's the friend who tells you which reading is actually correct. πŸ‘‘

By default, cg-proc reads its input from stdin and writes its output to stdout. No cap, it just does.

And the binary grammar files that the parser reads? Those are generated by cg-comp(1). So go make them first, bestie. πŸŽ€


πŸ’… OPTIONS πŸ’…

  • -d β€” morphological disambiguation (this is the default behaviour, so it's giving main character energy by literally being the norm) πŸ”₯
  • -s β€” specify number of sections to process
  • -f β€” set the format of the I/O stream to NUM,
    • where 0 is VISL format and 1 is Apertium format (default: 1)
  • -r β€” run only the named rule (just the one, she's exclusive πŸ’œ)
  • -t β€” print debug output on stderr
  • -w β€” enforce surface case on lemma/baseform
    • (so it plays nice with the -w option of lt-proc, iykyk)
  • -n β€” do not print out the word form of each cohort
  • -1 β€” only output the first analysis if ambiguity remains (pick one and commit, periodt)
  • -z β€” flush output on the null character
  • -v β€” version
  • -h β€” show this help

πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’€ BUGS πŸ’€

Email to: Tino Didriksen <mail@tinodidriksen.com> β€” like actually email him, he's the one who wants to know. πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

(c) 2007-2025 GrammarSoft ApS


and that's the whole page, bestie β€” this was cg-proc(1) from back on 2014-05-07, mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from