Repository navigation
fix(glosario): términos con otro sentido, traducciones a medias y género - #34
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.
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: 0e443b33d2
ℹ️ 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".
| return True | ||
| for m in _patron_palabra(termino, re.IGNORECASE).finditer(original): | ||
| if m.group(0)[:1].isupper() and ( | ||
| not _inicio_de_frase(original, m.start()) or _en_estilo_titulo(original, termino) |
There was a problem hiding this comment.
Keep sentence-initial short phrases out of the title-name path
For an ambiguous one-word term such as Lead, a short instruction starting with that word (for example, Lead the way) is treated as title-style here: _en_estilo_titulo ignores the other words because they are all shorter than four letters. Glosario.relevantes then sends Correa, and terminos_faltantes enforces it, recreating the wrong-sense glossary behavior for this common short form. Distinguish these sentence-initial uses from actual title-style names.
Useful? React with 👍 / 👎.
| banco = medicion.Banco.leer(args.banco) | ||
| if args.vanilla is not None and not banco.juego: | ||
| banco.juego = nombres_del_juego(args.vanilla, banco.dialecto) | ||
| banco.usos = usos_del_juego(args.vanilla, banco.dialecto) |
There was a problem hiding this comment.
Load vanilla usages independently of the embedded glossary
When a measurement bank already contains a juego field and --vanilla is supplied, this guard skips loading usos as well as the already-present game terms. medicion.medir therefore receives no vanilla usage examples and never learns ambiguous-word behavior, so the benchmark does not exercise the feature despite the vanilla files being provided. Load usages whenever --vanilla is set, separately from the optional juego population.
Useful? React with 👍 / 👎.
Ola 3 del plan de calidad: el glosario deja de exigir términos donde no corresponden.
Qué cambia
Términos de una palabra con otro sentido. El glosario exigía «Diana» en «the position of the target», «Poder» en «other power solutions» y «Cambiante» en «without changing the filter».
Glosario.aprender_usosmira cómo traducen el juego y los mods cada palabra cuando va en minúscula.Términos de un mod a medio traducir. «Almacen Portable de Energía» y «slot de los Muslos» ya no entran en el glosario. Se descarta el término que deja en español una palabra inglesa que no sale en ningún texto en español aprendido. Los namespaces de la instancia («estilo Create») no cuentan.
Género del artículo. Al cambiar un término que quedó en inglés, «Usa el Wrench» pasa a «Usa la Llave inglesa». Si no se sabe el género y hay un artículo delante, no se cambia y queda como duda.
Frases que vuelven en inglés después del reintento. Antes se guardaban en la memoria como traducción. Ahora:
Medición
Gemini 3.8 Flash, dos corridas grabadas (US$ 0,12):
Verificación
scripts/verificar.pycompleto: 1349 pruebas pasan, cobertura del 94 %. Las pruebas nuevas están entests/test_glosario_preciso.py.