From 4c6a7a6f5e6a73dd3d825c483b03d429aa423a61 Mon Sep 17 00:00:00 2001 From: Novruz Garryyev Date: Mon, 2 Nov 2026 06:50:24 +0000 Subject: [PATCH] =?UTF-8?q?Release=201.2.3:=20equipment=20is=20orna=C5=9Fd?= =?UTF-8?q?yryldy,=20not=20oturdyldy;=20corpus=20checks=20accept=20km,=20a?= =?UTF-8?q?=20plural=20verb=20and=20one=20heading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .claude-plugin/plugin.json | 2 +- .cursor-plugin/plugin.json | 2 +- CHANGELOG.md | 8 ++++++++ SKILL.md | 2 +- package.json | 2 +- prompts/system-prompt.md | 2 +- references/morphology.md | 3 ++- references/turkmen-tells.md | 3 ++- tests/corpus/haly-ocerk/expected.json | 4 ++-- tests/corpus/kitaphana-habary/expected.json | 4 ++-- tests/corpus/kitaphana-habary/reference.txt | 2 +- tests/corpus/sanly-mekdep-makala/expected.json | 2 +- tests/corpus/terjime-mary/expected.json | 14 +++++++------- tests/corpus/terjime-mary/reference.txt | 2 +- 14 files changed, 31 insertions(+), 21 deletions(-) diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 2cd5534..8d111a0 100644 --- a/.claude-plugin/plugin.json +++ b/.claude-plugin/plugin.json @@ -2,7 +2,7 @@ "$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json", "name": "humanizer21", "description": "Turkmen language humanizer. Edits and writes Turkmen text (türkmen dili, Latin script) so it reads like a literate native speaker wrote it, not a chatbot.", - "version": "1.2.2", + "version": "1.2.3", "author": { "name": "Novruz Garryyev", "url": "https://github.com/novgar21" diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 7c8bfa5..1410e29 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "humanizer21", "description": "Turkmen language humanizer. Edits and writes Turkmen text (türkmen dili, Latin script) so it reads like a literate native speaker wrote it, not a chatbot.", - "version": "1.2.2", + "version": "1.2.3", "author": { "name": "Novruz Garryyev" }, diff --git a/CHANGELOG.md b/CHANGELOG.md index 9580c8c..fc8cab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.2.3 + +From the second corpus run and a native speaker's review: + +- Equipment is `ornaşdyryldy`, `gurnaldy` or `enjamlaşdyryldy`, not `oturdyldy`, which is for trees (`nahal oturdyldy`). Added to `references/morphology.md` and `references/turkmen-tells.md`; the examples of the passive rule now use `ornaşdyryldy`. +- After an attribute the izafet ending is correct and is not an accusative: `12 sany häzirki zaman kompýuterleri ornaşdyryldy`. +- Corpus checks accept correct wordings they used to reject: `46 km` as well as `46 kilometr`, `agaç gabygyndan` as well as `agajyň`, `baýram günlerinde` in a translated quote, a plural verb before a dash, and one heading at the top of a web article. + ## 1.2.2 From the first automatic corpus run (`tests/run_corpus.py`): diff --git a/SKILL.md b/SKILL.md index 83e244e..4272b2e 100644 --- a/SKILL.md +++ b/SKILL.md @@ -4,7 +4,7 @@ description: Turkmen language humanizer. Edits and writes Turkmen text (türkmen license: MIT metadata: author: Novruz Garryyev - version: "1.2.2" + version: "1.2.3" --- # humanizer21 diff --git a/package.json b/package.json index 7b62e77..ba73e74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "humanizer21", - "version": "1.2.2", + "version": "1.2.3", "description": "Turkmen language humanizer: a skill that removes AI tells and fixes Turkmen spelling, grammar and punctuation.", "bin": { "humanizer21": "bin/install.js" diff --git a/prompts/system-prompt.md b/prompts/system-prompt.md index 8d9c5fc..ebe57d6 100644 --- a/prompts/system-prompt.md +++ b/prompts/system-prompt.md @@ -32,7 +32,7 @@ WORKFLOW - k p t ç → g b d j before a vowel suffix in words of 2+ syllables: kitaby, agajy, maksady, Merediň. Not in one-syllable stems (itiň) or -at/-et loans (hökümeti). - Dropped vowel: ogul→ogly, oglunyň (not ogluň, which is 'your'), agyz→agzy, burun→burny. Pair words keep the hyphen: gije-gündiz. - After the 3rd person possessive add n: welaýatynda, kararyny, obasyna. -- Noun stays singular after a number: üç kitap, 40 talyp. With a passive verb it also stays in the base form: 12 kompýuter oturdyldy (not kompýuteri). +- Noun stays singular after a number: üç kitap, 40 talyp. With a passive verb it also stays in the base form: 12 kompýuter ornaşdyryldy (not kompýuteri). - Ordinals: 2026-njy ýyl, 2025-nji ýyl, 25-nji oktýabr, 6-njy, 9-njy, 10-njy, 1-nji, 3-nji (by the vowel of the spoken last word). - Question suffix together: geldimi. däl, iň, bilen, üçin, ýaly are separate. Hyphen: ýa-da, hem-de, ABŞ-nyň. - Capitals: Aşgabat şäheri, Mary welaýaty; months lowercase; Täze ýyl. diff --git a/references/morphology.md b/references/morphology.md index 3752a59..1b66ec6 100644 --- a/references/morphology.md +++ b/references/morphology.md @@ -31,7 +31,8 @@ Suffixes attach directly, without space, hyphen or apostrophe. A hyphen appears - Back stem `-lar`, front stem `-ler`: `ýurtlar`, `welaýatlar`, `şäherler`, `işler`, `kompýuterler`. - After a rounded first syllable a final `-y/-i` rounds: `guzy → guzular`, `goşgy → goşgular`. - After a number the noun stays singular: `üç gün`, `bäş ýyl`, `10 müň adam`. Not `üç günler`. -- The subject of a passive verb takes no accusative, with or without a number: `12 sany kompýuter oturdyldy`, `kitaphana açyldy`. Not `12 sany kompýuteri oturdyldy`, `kompýuterleri oturdyldy`. The accusative goes on the object of an active verb: `kompýuterleri oturtdylar`. +- The subject of a passive verb takes no accusative, with or without a number: `12 sany kompýuter ornaşdyryldy`, `kitaphana açyldy`. The accusative goes on the object of an active verb: `kompýuterleri ornaşdyrdylar`. After an attribute the noun may take the izafet ending, which is not an accusative: `12 sany häzirki zaman kompýuterleri ornaşdyryldy`, `häzirki zaman enjamlary ornaşdyryldy`. +- Equipment is `ornaşdyryldy`, `gurnaldy` or `enjamlaşdyryldy` (`otaglar häzirki zaman enjamlary bilen enjamlaşdyryldy`), not `oturdyldy`: `oturtmak` is for trees and seedlings (`nahal oturdyldy`). - `ol → olar`, `şol → şolar`. ## 4. Possessive suffixes diff --git a/references/turkmen-tells.md b/references/turkmen-tells.md index 9cc07b8..b6a9c66 100644 --- a/references/turkmen-tells.md +++ b/references/turkmen-tells.md @@ -91,7 +91,8 @@ Chains of four or more genitives (`ýurdumyzyň ykdysadyýetiniň pudaklarynyň ## 5. Grammar slips - Plural after a number: `üç kitaplar → üç kitap`, `10 müň adamlar → 10 müň adam`. -- Accusative on the subject of a passive verb: `12 sany kompýuteri oturdyldy → 12 sany kompýuter oturdyldy`, `karary kabul edildi → karar kabul edildi`. With a passive verb the thing acted on is the subject and stays in the base form; `-y/-i` there reads as "his/its computer" or as an object with no verb to take it. Check this whenever you turn a plural into a singular after a number. +- Accusative on the subject of a passive verb: `12 sany kompýuteri ornaşdyryldy → 12 sany kompýuter ornaşdyryldy`, `karary kabul edildi → karar kabul edildi`. With a passive verb the thing acted on is the subject and stays in the base form; `-y/-i` there reads as "his/its computer" or as an object with no verb to take it. Check this whenever you turn a plural into a singular after a number. After an attribute the izafet ending is correct: `häzirki zaman kompýuterleri ornaşdyryldy`. +- `kompýuter oturdyldy`, `enjam oturdyldy` (Russian установлены) → `ornaşdyryldy`, `gurnaldy`; `oturtmak` is for trees (`nahal oturdyldy`). - Missing `n` after the 3rd person possessive: `welaýatyda → welaýatynda`, `kararyy → kararyny`. - Ordinals without the right suffix: `9-nji → 9-njy`, `6-nci → 6-njy`, `2025-njy → 2025-nji`. - Question particle written apart: `bilýärsiň mi → bilýärsiňmi`. diff --git a/tests/corpus/haly-ocerk/expected.json b/tests/corpus/haly-ocerk/expected.json index 91f66f3..091f8e3 100644 --- a/tests/corpus/haly-ocerk/expected.json +++ b/tests/corpus/haly-ocerk/expected.json @@ -21,7 +21,7 @@ "gluny\u0148 to\u00fdy", "35 \u00fdyl", "narpyz", - "agajy\u0148", + "re:agajy\u0148|aga\u00e7 gabyg", "indigo", "8 m\u00fc\u0148", "1 200-si", @@ -104,4 +104,4 @@ "\u200b", "\u00ad" ] -} \ No newline at end of file +} diff --git a/tests/corpus/kitaphana-habary/expected.json b/tests/corpus/kitaphana-habary/expected.json index d9b14c8..81855d2 100644 --- a/tests/corpus/kitaphana-habary/expected.json +++ b/tests/corpus/kitaphana-habary/expected.json @@ -21,10 +21,10 @@ "Netijede", "kitaplar bar", "kompýuterlar", - "kompýuteri oturdyldy", + "re:kompýuter\\w* oturdyldy", "2025-njy", "\"", "—", "Başga soragyňyz" ] -} \ No newline at end of file +} diff --git a/tests/corpus/kitaphana-habary/reference.txt b/tests/corpus/kitaphana-habary/reference.txt index c8555b2..f4e13c0 100644 --- a/tests/corpus/kitaphana-habary/reference.txt +++ b/tests/corpus/kitaphana-habary/reference.txt @@ -1,4 +1,4 @@ -Daşoguz şäherinde täze kitaphana açyldy. Onda 40 müň kitap bar, okyjylar üçin bolsa 12 sany häzirki zaman kompýuter oturdyldy. +Daşoguz şäherinde täze kitaphana açyldy. Onda 40 müň kitap bar, okyjylar üçin bolsa 12 sany häzirki zaman kompýuter ornaşdyryldy. Kitaphanada çagalar bölümi, okalga zaly we «Sanly kitaphana» ulgamy işleýär. Okyjylar Microsoft programmalaryny mugt ulanyp bilerler. diff --git a/tests/corpus/sanly-mekdep-makala/expected.json b/tests/corpus/sanly-mekdep-makala/expected.json index 02ceffc..9b7962d 100644 --- a/tests/corpus/sanly-mekdep-makala/expected.json +++ b/tests/corpus/sanly-mekdep-makala/expected.json @@ -15,7 +15,7 @@ ], "must_not": [ "Elbetde", - "##", + "re:\\n#{1,6} ", "**", "Aşakdaky bölümlerde", "Platforma barada gürrüň", diff --git a/tests/corpus/terjime-mary/expected.json b/tests/corpus/terjime-mary/expected.json index 82ddd27..e61c985 100644 --- a/tests/corpus/terjime-mary/expected.json +++ b/tests/corpus/terjime-mary/expected.json @@ -25,12 +25,12 @@ "g\u00f6re\u015f", "h\u00e4kim", "da\u00fdhan birle\u015figi", - "46 kilometr", + "re:46 (kilometr|km)", "10-njy fewral", "30-njy ma\u00fd", "1 200 gektar", "450 gektar", - "120 kilometr", + "re:120 (kilometr|km)", "14 oba", "iki sany t\u00e4ze nasos stansi\u00fdasy", "1-nji sent\u00fdabr", @@ -48,7 +48,7 @@ "38 m\u00fc\u0148", "9 g\u00f6terim", "1,5 million", - "8 kilometr", + "re:\\b8 (kilometr|km)", "600 me\u00fdletin\u00e7i", "14 tonna", "580 m\u00fc\u0148 tonna", @@ -63,13 +63,13 @@ "40 mekdeb", "1 850", "150 talyp", - "85 kilometr", + "re:85 (kilometr|km)", "4 m\u00fc\u0148", "1 300", "120 otag", "gara\u015f\u00fdarys \u2013 ", - "\u2013 hatda ba\u00fdram\u00e7ylyk", - "gid\u00fd\u00e4rdi \u2013 indi", + "re:\u2013 hatda ba\u00fdram(\u00e7ylyk)? g\u00fcnlerinde", + "re:gid\u00fd\u00e4rdi(ler)? \u2013 indi", "tyg\u015fytla\u00fdar \u2013 ", "\u00fdeti\u015fdik \u2013 ", "berk jan saglyk", @@ -111,4 +111,4 @@ "howzynda", "howzyny" ] -} \ No newline at end of file +} diff --git a/tests/corpus/terjime-mary/reference.txt b/tests/corpus/terjime-mary/reference.txt index afdc7ba..890f395 100644 --- a/tests/corpus/terjime-mary/reference.txt +++ b/tests/corpus/terjime-mary/reference.txt @@ -28,7 +28,7 @@ Garaşsyzlyk gününe bagyşlanan göreş ýaryşynda Mary welaýatynyň topary Sakarçäge we Türkmengala etraplarynda iki sany täze oba saglyk merkezi ulanmaga berildi. Olaryň her biri bir çalşykda 50 adamy kabul etmäge niýetlenen. -Welaýat hassahanasynda täze anyklaýyş enjamlary, şol sanda MRT enjamy oturdyldy. Iýuldan oktýabra çenli bu enjamda 2 340 näsag barlandy. Hassahananyň baş lukmany Maýa Ataýewa: «Öň adamlar beýle barlag üçin Aşgabada gidýärdi – indi bu barlagdan şu ýerde geçip bolýar» diýip belledi. +Welaýat hassahanasynda täze anyklaýyş enjamlary, şol sanda MRT enjamy ornaşdyryldy. Iýuldan oktýabra çenli bu enjamda 2 340 näsag barlandy. Hassahananyň baş lukmany Maýa Ataýewa: «Öň adamlar beýle barlag üçin Aşgabada gidýärdi – indi bu barlagdan şu ýerde geçip bolýar» diýip belledi. ## Taryh we medeniýet