{"_id":"@cantez/turkishify","name":"@cantez/turkishify","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@cantez/turkishify","version":"1.0.0","main":"index.js","license":"MIT","author":{"name":"Alperen Cantez"},"description":"Harmonious suffixes for Turkish nouns. Zero dependencies.","repository":{"type":"git","url":"git+https://github.com/alperencantez/turkishify.git"},"_id":"@cantez/turkishify@1.0.0","bugs":{"url":"https://github.com/alperencantez/turkishify/issues"},"homepage":"https://github.com/alperencantez/turkishify#readme","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-rccI58fjqUd0q+GqDTgb+kiYaxvQopiAJ9REsObrQs2kzMZgw51E5m5MvnZCSSgZX3UlvJxxhoqdAE5apaUqTQ==","shasum":"5c35d7825d404aa3b435072216b3525f1928c031","tarball":"https://registry.npmjs.org/@cantez/turkishify/-/turkishify-1.0.0.tgz","fileCount":5,"unpackedSize":9806,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHePr+lyxwJSATx5QAMhBTurdj7CloI7CVCLsCuIG3HjAiEA9+ezPmrwr0oKk76jaaMd0lDUcESvizwuZQuUfSVHaMQ="}]},"_npmUser":{"name":"cantez","email":"alperencantez@gmail.com"},"directories":{},"maintainers":[{"name":"cantez","email":"alperencantez@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/turkishify_1.0.0_1748934211587_0.1609601813592747"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-03T07:03:31.500Z","1.0.0":"2025-06-03T07:03:31.829Z","modified":"2025-06-03T07:03:32.108Z"},"maintainers":[{"name":"cantez","email":"alperencantez@gmail.com"}],"description":"Harmonious suffixes for Turkish nouns. Zero dependencies.","homepage":"https://github.com/alperencantez/turkishify#readme","repository":{"type":"git","url":"git+https://github.com/alperencantez/turkishify.git"},"author":{"name":"Alperen Cantez"},"bugs":{"url":"https://github.com/alperencantez/turkishify/issues"},"license":"MIT","readme":"# Turkishify\n\n### Harmonious suffix implementation for Turkish nouns in JavaScript. Zero dependencies.\n\n🇬🇧: A tiny JavaScript library to generate Turkish suffixes based on nouns. This library helps you correctly form Turkish grammatical cases (belirtme, yönelme, bulunma, and ayrılma hâli) while following Turkish vowel harmony rules.\n\n🇹🇷: İsimlere Türkçe ekler getirmeye yarayan minik bir JavaScript kütüphanesi. Bu kütüphane, Türkçe ses uyumu kurallarına uygun olarak ismin hallerini (belirtme, yönelme, bulunma ve ayrılma hâli) doğru şekilde oluşturmanıza yardımcı olur.\n\nBazı popüler uygulamaların Türkçe versiyonlarında görülen doğal hissettirmeyen ek hatalarını yok etmeyi amaçlamıştır.\nBunlar:\n\n- Mehmet'dan (Snapchat)\n- Fatma'e (Instagram Reels)\n\ngibi dil bilgisi açısından yanlış olan yazılışlar örnekleridir.\n\n## Features / Özellikler\n\n- Generates correct Turkish suffixes for:\n  - Accusative case (Belirtme hâli) - e.g., \"evi\", \"kediyi\", \"gözlüğü\"\n  - Dative case (Yönelme hâli) - e.g., \"eve\", \"arabaya\"\n  - Locative case (Bulunma hâli) - e.g., \"evde\", \"arabada\"\n  - Ablative case (Ayrılma hâli) - e.g., \"evden\", \"arabadan\"\n- Handles proper nouns with correct capitalization\n- Implements Turkish vowel harmony rules\n- Manages consonant softening\n- Supports buffer consonants (y) when needed\n\n## Installation / Yükleme\n\nEither of / Herhangi biri\n\n```bash copy\nnpm install @cantez/turkishify\n```\n\n```bash\nyarn add @cantez/turkishify\n```\n\n```bash\npnpm install @cantez/turkishify\n```\n\n## Usage / Kullanım\n\n```javascript\nconst Turkishify = require(\"@cantez/turkishify\");\n\n// Accusative case (Belirtme hâli)\nconsole.log(Turkishify.accusative(\"ev\")); // \"evi\"\nconsole.log(Turkishify.accusative(\"kedi\")); // \"kediyi\"\nconsole.log(Turkishify.accusative(\"gözlük\")); // \"gözlüğü\"\n\n// Dative case (Yönelme hâli)\nconsole.log(Turkishify.dative(\"ev\")); // \"eve\"\nconsole.log(Turkishify.dative(\"araba\")); // \"arabaya\"\n\n// Locative case (Bulunma hâli)\nconsole.log(Turkishify.locative(\"ev\")); // \"evde\"\nconsole.log(Turkishify.locative(\"araba\")); // \"arabada\"\n\n// Ablative case (Ayrılma hâli)\nconsole.log(Turkishify.ablative(\"ev\")); // \"evden\"\nconsole.log(Turkishify.ablative(\"araba\")); // \"arabadan\"\n\n// Proper nouns\nconsole.log(Turkishify.accusative(\"Türkiye\", true)); // \"Türkiye'yi\"\nconsole.log(Turkishify.dative(\"İstanbul\", true)); // \"İstanbul'a\"\n```\n\n## API Reference / API İçeriği\n\n### Methods / Metotlar\n\n#### `accusative(word, isProperNoun = false)`\n\nGenerates the accusative case form of a word.\n\n#### `dative(word, isProperNoun = false)`\n\nGenerates the dative case form of a word.\n\n#### `locative(word, isProperNoun = false)`\n\nGenerates the locative case form of a word.\n\n#### `ablative(word, isProperNoun = false)`\n\nGenerates the ablative case form of a word.\n\n### Parameters / Parametreler\n\n- `word` (string): The word to generate the suffix for / Ek oluşturulacak kelime\n- `isProperNoun` (boolean): Whether the word is a proper noun (default: false) / Kelimenin özel isim olup olmadığı durumu\n\n## Source / Kaynak\n\n_This library is based on Turkish grammar rules as described in the [Turkish grammar Wikipedia article](https://en.wikipedia.org/wiki/Turkish_grammar#Case)._\n","readmeFilename":"README.md","_rev":"1-bfb95d126d154299dc1106c001a0bd92"}