Skip to content

Release 0.37.0: Portuguese/Spanish AI-cliche dictionaries, contrast connectors kept - #39

Merged
ksanyok merged 2 commits into
mainfrom
feat/pt-es-cliches
Nov 13, 2026
Merged

ksanyok merged 2 commits into
mainfrom
feat/pt-es-cliches

Conversation

@ksanyok

@ksanyok ksanyok commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Why

Portuguese had no AI-cliche list at all (6 edits on the benchmark article) and the Spanish list was thin.

Changes

  • New AI_CLICHES_PT (openers, hedges, stock phrases) and extended AI_CLICHES_ES in texthumanize/lang/_ai_cliches.py; keys keep their preposition (no/na/do/da/em) so the replacement governs the following noun exactly like the original. JS packs regenerated.
  • Contrastive connectors ("However", "Однако", "No entanto") are only replaced by another contrastive connector, never dropped — dropping them lost meaning. Additive and concluding connectors may still be dropped.
  • Spanish colloquial "Total," removed from replacements.

Results (benchmarks/seo_html)

pt 6 → 17 edits, es 14 → 18; links and tags preserved 100%. Live pt/es production articles still get 0–1 edits: they contain no stock cliches.

Tests

JS 119 (incl. contrast connectors kept on en/ru/pt × 25 seeds), Python 2334. Version 0.37.0, check_version_sync.py OK.

The PHP engine port moves to a separate PR / release (0.38.0), as requested: one release per item.

…onnectors kept

- New Portuguese AI-cliche list, extended Spanish list (benchmark edits
  pt 6 -> 17, es 14 -> 18); keys keep their preposition.
- Contrastive connectors are replaced but never dropped.
- Spanish 'Total,' removed from replacements.
@ksanyok ksanyok changed the title Release 0.37.0: PHP publication-safe engine + humanizeHtml, Portuguese/Spanish cliches Release 0.37.0: Portuguese/Spanish AI-cliche dictionaries, contrast connectors kept Nov 13, 2026
Comment thread js/tests/multilang.test.ts Fixed
@ksanyok
ksanyok merged commit 5573aa7 into main Nov 13, 2026
16 checks passed
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.

2 participants