Skip to main content

Python 3 library for creating inflected forms given basic forms of Modern Greek words

Project description

Tests

Modern-greek-inflexion

Python 3 library for recognizing inflexion types and for creating all possible inflected forms for Modern Greek words (verbs, adjectives, nouns etc.). It has nothing to do with AI. To avoid creating non-existent (though maybe possible forms) it checks its results with a orthographic dictionary. The application is implemented in a web app you can find here.

Installation

Use the package manager pip to install modern-greek-inflexion.

pip install modern-greek-inflexion

Usage

see docs.rst

Unittests

run

python -m unittest

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Change Log

  • 0.5.542 Improved recreating of sigmatic roots for passive imper.

  • 0.5.541 added prefixes in accentuation model. Small improvements in verb module.

  • 0.5.540 updated accentuation module.

  • 0.5.539 Added prefix antikata, improved inflexion on w, ois, oi

  • 0.5.537 Improved handling for isthmi

  • 0.5.535 If cannot create past pass part from pass root, try do it from act root (sthnw).

  • 0.5.533 Added irregular passive roots (klept-klap, fer-ferth)

  • 0.5.532 Improved handling of verbs on aro (aor iso), also ago is created correctly.

  • 0.5.530 Added handling for loan verbs on aro to add a common perf root on risw.

  • 0.5.527 Added logic to create imperative forms on ete for roots on r, n, if there is no form with te.

  • 0.5.526 Fixed bug when logic for t/th alternation was applied to different verbs

  • 0.5.525 Some addition to irregular roots

  • 0.5.521 Fixed bug with aorist on hn, where basic form was given with hn not h.

  • 0.5.520 Labainw and lambanw fixed.

  • 0.5.519 Again bugs with thita/tau in deponens, fixed for now.

  • 0.5.518 improved handling of thita to tau mutual existence in pass roots.

  • 0.5.517 fixed bazw, it has passive in historical times.

  • 0.5.516 added irregular root pair ftheir fthar

  • 0.5.515 added double handling for passive perfect roots that and with t, but can sometimes endwith th. Added pass perf particple handling for roots that end on gx.

  • 0.5.511 Fixed issue with passive future wrong con recognition, improved handling of augmentation of passive perf. part.

  • 0.5.500 Fixed issue with augmented prefixes where a changes to h.

  • 0.5.499 Fixed issue with participles and passive aorist in verbs that consist of exw and agw.

  • 0.5.490 Added masc exceptions for us, os, and better handling of fem on is ews.

  • 0.5.485 Fixed bug with aorist forms of deponens when multiple roots

  • 0.5.475 Fixing issue with augmented prefixes (in modern-greek-accentuation library)

  • 0.5.460 Minor improvements to code readability.

  • 0.5.450 Bugs in verbs, imperatives for longer verbs in con2b concjuntive, clash paw and pw, solved.

  • 0.5.425 Improved handling of passive perfect participles, when there are more than one.

  • 0.5.405 Fixed issues with monotonic constraints on pronouns and adverbs, removed gen pl from adj on hs, iko

  • 0.5.40 Fixed inner augmentation (eggrafo, syllambano)

  • 0.5.33 Fixed handling of 2 syllables on ao (spao) and improved augment handling.

  • 0.5.32 Fixed handling of a irregularities in pao verb.

  • 0.5.31 Fixed issue with missing acc in us/hs eis noun inflexion type.

  • 0.5.3 Fixed issue with incorrect inflexion of nouns on 'hs/us and eis'.

  • 0.5.2 Fixed bug with accentuation of composita like katexo and paraeimai.

  • 0.5.1 Updated accentuation module, fixed bug with eimai, fixed bug with aorist participles.

  • 0.5.0 Updated accentuation module, that deals better with augmentation of verbs.

  • 0.4.9 Improved accentuation handling, improved handling of sg only nouns.

  • 0.4.8 Added optional flag aklito for nouns and adjectives (boolean).

  • 0.4.7 Bug fixes, added: adj on wr, verbs (aor and parat) on arw

  • 0.4.6 Bug with single syllable verbs fixed

  • 0.4.5 Small improvements, fixing bug with endings eimai, added adv pron and smaller improvements

  • 0.4.0 Code refactored, changed import paths, fixing bug causing problems with imports

  • 0.3.0 Fixed bug when a possible prefix of a verb is identical with a verb itself, minor refactoring of the code

  • 0.2.6 Fixed handling of indeclinable nouns (those on r, n etc were ignored)

  • 0.2.5 Added surname handling

  • 0.2.4 Minor fixes, updated requirements, updated word lists

  • 0.2.3 Added a more comprehensive corpus of the Greek words utilizing wikileksiko corpus, small improvements to the handling of prefixes in verbs

  • 0.2.2 Fixed exceptions message

  • 0.2.1 Fixes in verb module, mainly to modal verbs but also some minor issues resolved also. Added custom exceptions in exceptions module

  • 0.1.15 Added handling for ancient adjectives from 3rd declination (is, itos, ks, kos), and also for attic declination

  • 0.1.14 Added logic for contracted ancient adjectives on ous, oun, some minor improvements

  • 0.1.13 Added logic for resolving inflexion type of adjective that cannot be helped by corpus

  • 0.1.12 Fixed issue with adj on hs with feminine on issa, and error which occurred if an adj doesnt have an adverb

  • 0.1.11 Fixed bug in adjectives, where not existent superlative would lead to a crash

  • 0.1.10 Fixes to numerals, now doesn't return alternative forms

  • 0.1.9 Refactored numerals, minor fixes in noun and adj

  • 0.1.8 Minor fixes in noun, now works better with additional info on gender and inflection.

  • 0.1.6 Fixed issue with path to pickled db, db included in package

  • 0.1.4 Fixed issue with dependencies, fixed path to greek_corpus db.

  • 0.1.3 Added es, ous neutral nouns, fixed issue with hs, eis nouns, added new pronoun paradigms, added flag 'aklito' for nouns and adjectives.

  • 0.1.2 Fixed issue with double vocatives in some two syllable proper masculine names

  • 0.1.1 Initial release

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modern-greek-inflexion-0.5.542.tar.gz (8.2 MB view details)

Uploaded Source

Built Distribution

modern_greek_inflexion-0.5.542-py3-none-any.whl (8.4 MB view details)

Uploaded Python 3

File details

Details for the file modern-greek-inflexion-0.5.542.tar.gz.

File metadata

File hashes

Hashes for modern-greek-inflexion-0.5.542.tar.gz
Algorithm Hash digest
SHA256 8e40b4b7b578a63096604615cf680c671f00891fd0b7089e46f5be5fe5059c61
MD5 7f3d55835ba3018d8dbf545660ff7adf
BLAKE2b-256 1a0fc17d3f1f932586206a8a636ce2bb3afe726b9d98f2c00fe01bd9b5aaa4b1

See more details on using hashes here.

File details

Details for the file modern_greek_inflexion-0.5.542-py3-none-any.whl.

File metadata

File hashes

Hashes for modern_greek_inflexion-0.5.542-py3-none-any.whl
Algorithm Hash digest
SHA256 8eebbcd165dc326111a64fc9e8fcfff9e3d58b0a4800a05b09bf8ec567954846
MD5 b3fcaef5e1986c3b2df73efca4f54fd5
BLAKE2b-256 a22a1701404c36f0bb8f30b831bc8fcc0d3dd8a534e9e46e1b2f2085616648c6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page