Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AngelMoralesChazari/TautoTeacher-2.0/llms.txt
Use this file to discover all available pages before exploring further.
LogicScriptCli (class tautoteacher2.logicscript.LogicScriptCli) provides a command-line interface to the full TautoTeacher pipeline: natural-language translation via LogicScriptService followed by propositional evaluation via MotorLogico. It is useful for scripting batch translations, testing individual sentences without launching the GUI, and verifying that a freshly built output directory has all resources in place.
Usage
Multi-word sentence example
Successful translation output
When the sentence is translated and evaluated without errors, the CLI prints the following structure to stdout:Pasos de análisis section mirrors the pasosDeAnalisis list from LogicScriptResult and records every decision taken by the pipeline — normalization, tokenization, pattern match — making it straightforward to diagnose unexpected output.
Exit codes
| Code | Meaning |
|---|---|
0 | Translation and logic evaluation both succeeded. |
1 | No arguments were supplied, or the joined argument string is empty. |
2 | LogicScriptService.traducir returned a failure result (isExito() == false). The error message and analysis steps are printed to stderr. |
3 | MotorLogico threw an exception while evaluating the formula (e.g. the formula string is malformed). The exception message is printed to stdout and the process exits with code 3. |
Error output
When translation fails (exit code2), the CLI prints to stderr:
lemma, an unmatched pattern, or a .lgs load error.
The classpath (
-cp out) must contain both the compiled .class files and the copied resources directory. In particular, logicscript/core.lgs must be reachable at out/logicscript/core.lgs for the engine to load the declarative rules. The compile.ps1 script included in the repository handles the copy step automatically. If you compile manually and see a RECURSO_NO_ENCONTRADO warning in the analysis steps, copy src/main/resources/ into out/ and re-run.