Skip to main content

Akrikola

An early version of a light-weight NLP library for Finnish language.

Use case

In Finnish language the rules for selecting noun cases "in", "from" and "into" for municipality names are complicated. Even Finns have problem selecting the correct case when using a less common municipality name. In Finland there are over 300 municipalities. This library provides correct case endings.

Use case explained in Finnish / Käyttötarkoitus suomeksi

Suomalaisten kuntien, kaupunkien ja muiden asutusten nimiä taivutetaan siten kuin paikkakunnalla on totuttu taivuttamaan. Tämä kirjasto taivuttaa suomalaisten kuntien nimet sisä- ja ulkopaikallissijoissa sekä partitiivissa ja genetiivissä. Lisäksi kirjastolla voi tunnistaa kuntien nimiä kaikissa mainituissa taivutusmuodoissa.

Using Akrikola

To conjugate municipalities just import Municipality class and create an instance with the name of the municipality.

from akrikola import Municipality

town = Municipality("Ylivieska")
print(town.departure)
print(town.destination)
print(town.at)

Will produce:

Ylivieska
Ylivieskaan
Ylivieskassa

Also nominative, partitive and genetive forms can be produced:

city = Municipality("Kauniainen")
print(city.name)
print(city.partitive)
print(city.genetive)
print(city.in_swedish)

Will produce:

Kauniainen
Kauniaista
Kauniaisten
Grankulla

Note that the class will throw KeyError at instance creation if the word is not a name of a municipality.

To check if a word is a municipality name in any the six recognized noun cases (plus in swedish):

from akrikola import Municipality

Municipality.exists("Hattula")
# return True
Municipality.exists("Hattula")
# return False

Author

This project is licensed under the terms of the GNU Lesser General Public License v3.0 (GNU LGPLv3). See LICENSE.txt for more information.

Metadata

Release files for akrikola 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for akrikola 0.1
File Size Uploaded Provenance
akrikola-0.1.tar.gz 2.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for akrikola 0.1
File Interpreter ABI Platform
akrikola-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / akrikola-0.1.tar.gz

Download URL akrikola-0.1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
eee9c3a01dd8b50d544e06f8d1e9d8971371172432cdbb26637c774e8b422efd
BLAKE2b-256 checksum
How to use checksums
52efbfab729d1230755d96a283e5e17e34aa396cac04a7ab3e4d3b6736230f16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

Release files / akrikola-0.1-py3-none-any.whl

Download URL akrikola-0.1-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e840844862084e3f5f4c14606db74a1438879aabf1dc684a3a07b0ec7177c65e
BLAKE2b-256 checksum
How to use checksums
7f62e1d0f36b6c9e9f77c30650df8db9b14793f6ff737a535352d5d0066202d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.9

Security for akrikola 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page