turkish_suffix 0.1.1 copy "turkish_suffix: ^0.1.1" to clipboard
turkish_suffix: ^0.1.1 copied to clipboard

A Dart Package for handling Turkish Suffixes.

Flutter Turkish Suffix Extension #

This Dart package provides a set of extensions for handling Turkish suffixes. It includes methods for adding various grammatical suffixes to Turkish words, making it easier to work with Turkish language rules in your Dart applications.

Features #

  • Infinitive Suffix: Add the infinitive suffix to a verb.
  • Plural Suffix: Add the plural suffix to a noun.
  • Accusative Suffix: Add the accusative suffix to a noun.
  • Dative Suffix: Add the dative suffix to a noun.
  • Genitive Suffix: Add the genitive suffix to a noun.
  • Ablative Suffix: Add the ablative suffix to a noun.
  • Locative Suffix: Add the locative suffix to a noun.
  • Possessive Affix: Add the possessive affix to a noun based on person and quantity.

Getting started #

To start using this package, add it to your pubspec.yaml file:

dependencies:
  turkish_suffix: ^0.1.0

Then run:

  flutter pub get

Usage #

You can use The TurkishSuffix widget to automatically apply suffixes to Text widgets:


//iki ek kullanımı da aynı şeyi ifade ediyor
TurkishSuffix(text:Text("sidar"), ek: Ek.AYRILMA, proper_noun: true); //sidar'dan
TurkishSuffix(text:Text("deneme"), ek: Ek.DAN,); //denemeden

You can also use the extensions on String:

  print("git".makeInfinitive());  //  Output: gitmek
  print("yastık".makePlural());  //  Output: yastıklar
  print("dolap".makeAccusative());  //  Output: dolabı
  print("Sidar".makeDative(proper_noun: true)); // Output: Sidar'a
  print("Sidar".makeGenitive(proper_noun: true)); // Output: Sidar'ın
  print("Sidar".makeAblative(proper_noun: true)); // Output: Sidar'dan
  print("Sidar".makeLocative(proper_noun: true)); // Output: Sidar'da
  print("ülke".possessiveAffix(
    person: Person.bir,         //  kaçıncı şahıs
    quantity: Quantity.plural,  //  çoğul mu tekil mi
  )); // Output: ülkemiz
    print("ülke".possessiveAffix(
    person: Person.bir,         //  kaçıncı şahıs
    quantity: Quantity.singular,  //  çoğul mu tekil mi
  )); //Output: ülkem
1
likes
110
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart Package for handling Turkish Suffixes.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on turkish_suffix