Repository navigation
feat(contexto): orden del archivo, objeto de cada tooltip y vecinas de menú - #35
Conversation
Un término de una palabra que el juego y los mods casi nunca traducen igual en minúscula («target», «power», «lead») solo se manda y se exige cuando el texto lo usa como nombre. Se descartan los términos de un mod a medio traducir, el artículo sigue al género del término que reemplaza al inglés y una frase que vuelve en inglés ya no se guarda en la memoria.
…e menú Los textos van al motor en el orden del archivo; un tooltip dice de qué objeto habla, un texto corto de menú va con sus claves vecinas y lo que ya traduce el juego va en la pista. Los nombres y términos que se deciden primero llevan una o dos frases donde aparecen, las pistas de textos que solo difieren en espacios se juntan y la versión de España recibe más referencia. En el banco de interfaz el chrF sube 1,37 (IC 0,35 a 2,30).
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ee96354a09
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if actual != nuevo_genero: | ||
| otro = otro[0].upper() + otro[1:] if palabra[0].isupper() else otro | ||
| antes = antes[: articulo.start()] + otro + articulo.group(2) |
There was a problem hiding this comment.
Preserve masculine-form articles before stressed-a feminine nouns
When this repair replaces a glossary term with a feminine noun whose first syllable has stressed “a” (for example, Axe → Hacha or Water → Agua), it changes el/un to la/una, turning Usa el Axe into Usa la Hacha. Spanish keeps the masculine-form singular articles before these nouns (el hacha, un agua); because this path auto-accepts the repair, it produces a grammatically incorrect translation instead of leaving it for review.
Useful? React with 👍 / 👎.
| if self.controles_de_forma and motivo == "sin traducir" and not parece_nombre_propio(sin_formato(n)): | ||
| rechazados[n] = motivo # una frase en inglés no se guarda en la memoria como si fuera la traducción |
There was a problem hiding this comment.
Exclude common short clauses from the untranslated-name exception
If the tolerant retry returns Use it unchanged, parece_nombre_propio accepts it because the first word is capitalized and the remaining word has at most three characters. The retry then marks it as MOTIVO_NOMBRE but still adds the unchanged English to the result and memory, so later runs skip translating it; the QA doubt does not prevent that persistence. Guard against common sentence forms rather than treating every short token as a title connector.
Useful? React with 👍 / 👎.
Ola 4 del plan de calidad: más contexto para el motor, sin cambiar el prompt ni agregar pedidos. Este PR va encima del #34; cuando ese se fusione, aquí queda solo el último commit.
Qué cambia
modulos/mods.py,pista_con_contexto):armar_banco_local.py: arma las pistas igual que la app.Las descripciones de FTB Quests como un bloque, en vez de línea por línea, quedan para la ola de segmentación, porque cambian cómo se escriben los archivos.
Medición
Gemini 3.8 Flash, dos corridas por condición, US$ 0,17 en total. Para medir la interfaz se usó una copia del banco con las pistas nuevas, calculadas con los mismos archivos del corpus. 41 de 399 textos cambian de pista.
Interfaz
Por grupo de textos:
Libros: −0,46 (IC −1,14 a +0,21). No se distingue del ruido. Ahí solo cambian el orden y las frases que acompañan a los nombres.
Verificación
scripts/verificar.pycompleto: 1355 pruebas pasan. Las pruebas nuevas están entests/test_contexto_barato.py.