Skip to content

[LLM] Implement interactive Toolbox domain engines and OmniBar - #16

Open
menny wants to merge 1 commit into
seed-db-generationfrom
toolbox-engines
Open

menny wants to merge 1 commit into
seed-db-generationfrom
toolbox-engines

Conversation

@menny

@menny menny commented Oct 17, 2026

Copy link
Copy Markdown
Member

Overview

This PR implements the interactive Toolbox domain engines in //core/toolbox, powering Calque's sandboxes and universal Omni-Bar.

Components Implemented

  1. Toolbox Domain Models (//core/toolbox:ToolboxModels.kt):
    • OmniBar results (OmniBarResult: Number, SuffixRule, FalseCognate, Clitic, WordLookup, None).
    • Trap quiz models (TrapFilter, TrapQuizQuestion).
    • Suffix rule transformation models (TransformedCognateWord).
    • Verb timeline models (ReadingTense, SubjectPronoun, ConjugatedVerbForm, ShiftedSentenceResult).
    • Number/Date/Clock models (NumberAgreementResult, ClockTimeResult, DatePhraseResult).
    • Pronoun surgery models (PronounBlock, PronounBlockType, CliticSurgeryResult).
  2. Trap Detector Engine (TrapDetectorEngine.kt):
    • Filtering false cognates by severity/seen status and generating 2-choice disambiguation quizzes.
  3. Word Transformer Engine (WordTransformerEngine.kt):
    • Latin cognate suffix morpher (-tion -> -ción, -ty -> -dad, etc.) with Spanish orthographic adjustments (simplifying double consonants).
  4. Tense Shifter Engine (TenseShifterEngine.kt, VerbConjugationTables.kt, IrregularConjugationData.kt):
    • Verb timeline engine across 4 reading tenses (Pretérito, Imperfecto, Presente, Ir a + Infinitivo) for regular and irregular verbs.
  5. Number Odometer Engine (NumberOdometerEngine.kt):
    • Number counting with gender agreement (apocope un vs una, doscientos vs doscientas), clock time, and calendar dates.
  6. Clitic Surgery Engine (CliticSurgeryEngine.kt):
    • Interactive pronoun deconstruction and proclitic/enclitic equivalence builder.
  7. Smart Omni-Bar Engine (OmniBarEngine.kt):
    • Query dispatcher routing search strings to numbers/times, cognate suffix rules, false cognates, clitic surgery, or dictionary lookups.
  8. Unit Tests:
    • 6 comprehensive test suites covering all sandbox engines and routing scenarios.

Verification

  • bazelisk run //:format & bazelisk run //:format.check passed.
  • bazelisk build --config=lint //... (Detekt) passed with 0 issues.
  • bazelisk test //... passed (22 of 22 tests passing).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant