%global _empty_manifest_terminate_build 0 Name: python-turkish-suffix-library Version: 1.0.7 Release: 1 Summary: Turkish suffix library License: MIT License URL: https://github.com/miklagard/Turkish-Suffix-Library Source0: https://mirrors.aliyun.com/pypi/web/packages/62/36/bf10647c2eacc56763f0460df00eb98111d02f7dd20df630e8e413959edf/turkish-suffix-library-1.0.7.tar.gz BuildArch: noarch %description ### Turkish Suffix Library for Python ## Install pip install turkish-suffix-library ## Using #### Nouns from turkish_suffix_library.turkish import Turkish print(Turkish('araba').dative()) print(Turkish('sebep').ablative()) print(Turkish('sebep').accusative()) print(Turkish('ecdat').accusative()) print(Turkish('çanta').plural().possessive(person=1).ablative().to_json()) print(Turkish('aparat').possessive(person=2)) print(Turkish('batak').possessive(person=3)) print(Turkish('idrak').possessive(person=1, plural=True)) print(Turkish('ok').possessive(person=2, plural=True)) print(Turkish('çanta').possessive(person=3, plural=True)) print(f'{Turkish("Elif").genitive(proper_noun=True)} {Turkish("Öküz").possessive(person=3)}.') print(Turkish('dört').ordinal()) print(Turkish('yedi').distributive()) Turkish('kedi').instrumental() ##### Output arabaya sebepten sebebi ecdadı { 'result': 'çantalarımdan', 'stem': 'çanta', 'history': [ {'action': 'plural', 'current': 'çantalar', 'kwargs': {}}, {'action': 'possessive', 'current': 'çantalarım', 'kwargs': {'person': 1}}, {'action': 'ablative', 'current': 'çantalarımdan', 'kwargs': {}} ] } aparatın batağı idrakımız okunuz çantaları Elif'in Öküzü. dördüncü yedişer kediyle ## Turkish Grammar * Turkish is a highly agglutinative language, i.e., Turkish words have many grammatical suffixes or endings that determine meaning. Turkish vowels undergo vowel harmony. When a suffix is attached to a stem, the vowel in the suffix agrees in frontness or backness and in roundedness with the last vowel in the stem. Turkish has no gender. * Turkish Language is a language with strict rules with an only couple of exceptions which makes it very easy for simulating by coding. * [More Info](http://en.wikipedia.org/wiki/Turkish_grammar) ## User Interface The most of the methods are not supported yet, under development * Source code: https://github.com/miklagard/tr * Demo: https://trstem.com ## Other Languages C# Version https://github.com/yasinkuyu/Turkish.cs PHP Version https://github.com/yasinkuyu/Turkish.php JavaScript Version https://github.com/yasinkuyu/Turkish.js ## Special thanks for C#, PHP and JavaScript versions Yasin Kuyu https://github.com/yasinkuyu/ %package -n python3-turkish-suffix-library Summary: Turkish suffix library Provides: python-turkish-suffix-library BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-turkish-suffix-library ### Turkish Suffix Library for Python ## Install pip install turkish-suffix-library ## Using #### Nouns from turkish_suffix_library.turkish import Turkish print(Turkish('araba').dative()) print(Turkish('sebep').ablative()) print(Turkish('sebep').accusative()) print(Turkish('ecdat').accusative()) print(Turkish('çanta').plural().possessive(person=1).ablative().to_json()) print(Turkish('aparat').possessive(person=2)) print(Turkish('batak').possessive(person=3)) print(Turkish('idrak').possessive(person=1, plural=True)) print(Turkish('ok').possessive(person=2, plural=True)) print(Turkish('çanta').possessive(person=3, plural=True)) print(f'{Turkish("Elif").genitive(proper_noun=True)} {Turkish("Öküz").possessive(person=3)}.') print(Turkish('dört').ordinal()) print(Turkish('yedi').distributive()) Turkish('kedi').instrumental() ##### Output arabaya sebepten sebebi ecdadı { 'result': 'çantalarımdan', 'stem': 'çanta', 'history': [ {'action': 'plural', 'current': 'çantalar', 'kwargs': {}}, {'action': 'possessive', 'current': 'çantalarım', 'kwargs': {'person': 1}}, {'action': 'ablative', 'current': 'çantalarımdan', 'kwargs': {}} ] } aparatın batağı idrakımız okunuz çantaları Elif'in Öküzü. dördüncü yedişer kediyle ## Turkish Grammar * Turkish is a highly agglutinative language, i.e., Turkish words have many grammatical suffixes or endings that determine meaning. Turkish vowels undergo vowel harmony. When a suffix is attached to a stem, the vowel in the suffix agrees in frontness or backness and in roundedness with the last vowel in the stem. Turkish has no gender. * Turkish Language is a language with strict rules with an only couple of exceptions which makes it very easy for simulating by coding. * [More Info](http://en.wikipedia.org/wiki/Turkish_grammar) ## User Interface The most of the methods are not supported yet, under development * Source code: https://github.com/miklagard/tr * Demo: https://trstem.com ## Other Languages C# Version https://github.com/yasinkuyu/Turkish.cs PHP Version https://github.com/yasinkuyu/Turkish.php JavaScript Version https://github.com/yasinkuyu/Turkish.js ## Special thanks for C#, PHP and JavaScript versions Yasin Kuyu https://github.com/yasinkuyu/ %package help Summary: Development documents and examples for turkish-suffix-library Provides: python3-turkish-suffix-library-doc %description help ### Turkish Suffix Library for Python ## Install pip install turkish-suffix-library ## Using #### Nouns from turkish_suffix_library.turkish import Turkish print(Turkish('araba').dative()) print(Turkish('sebep').ablative()) print(Turkish('sebep').accusative()) print(Turkish('ecdat').accusative()) print(Turkish('çanta').plural().possessive(person=1).ablative().to_json()) print(Turkish('aparat').possessive(person=2)) print(Turkish('batak').possessive(person=3)) print(Turkish('idrak').possessive(person=1, plural=True)) print(Turkish('ok').possessive(person=2, plural=True)) print(Turkish('çanta').possessive(person=3, plural=True)) print(f'{Turkish("Elif").genitive(proper_noun=True)} {Turkish("Öküz").possessive(person=3)}.') print(Turkish('dört').ordinal()) print(Turkish('yedi').distributive()) Turkish('kedi').instrumental() ##### Output arabaya sebepten sebebi ecdadı { 'result': 'çantalarımdan', 'stem': 'çanta', 'history': [ {'action': 'plural', 'current': 'çantalar', 'kwargs': {}}, {'action': 'possessive', 'current': 'çantalarım', 'kwargs': {'person': 1}}, {'action': 'ablative', 'current': 'çantalarımdan', 'kwargs': {}} ] } aparatın batağı idrakımız okunuz çantaları Elif'in Öküzü. dördüncü yedişer kediyle ## Turkish Grammar * Turkish is a highly agglutinative language, i.e., Turkish words have many grammatical suffixes or endings that determine meaning. Turkish vowels undergo vowel harmony. When a suffix is attached to a stem, the vowel in the suffix agrees in frontness or backness and in roundedness with the last vowel in the stem. Turkish has no gender. * Turkish Language is a language with strict rules with an only couple of exceptions which makes it very easy for simulating by coding. * [More Info](http://en.wikipedia.org/wiki/Turkish_grammar) ## User Interface The most of the methods are not supported yet, under development * Source code: https://github.com/miklagard/tr * Demo: https://trstem.com ## Other Languages C# Version https://github.com/yasinkuyu/Turkish.cs PHP Version https://github.com/yasinkuyu/Turkish.php JavaScript Version https://github.com/yasinkuyu/Turkish.js ## Special thanks for C#, PHP and JavaScript versions Yasin Kuyu https://github.com/yasinkuyu/ %prep %autosetup -n turkish-suffix-library-1.0.7 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-turkish-suffix-library -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Fri Jun 09 2023 Python_Bot - 1.0.7-1 - Package Spec generated