## FinnSyll
FinnSyll is a Python library that syllabifies words according to Finnish syllabification principles. It is also equipped with a Finnish compound splitter. More details/docs to come.
### Installation
`$ pip install FinnSyll`
### Basic usage
First, instantiate a `FinnSyll` object.
` >>> from finnsyll import FinnSyll >>> f = FinnSyll() `
To syllabify: ` >>> f.syllabify('runoja') ['ru.no.ja'] # internal syllable boundaries are indicated with '.' `
To segment compounds: ` >>> f.split('sosiaalidemokraattien') 'sosiaali=demokraattien' # internal word boundaries are indicated with '=' `
### Optional arguments
The syllabifier can be customized along two different parameters: variation and compound splitting.
####variation
Instantiating a `FinnSyll` object with `variation=True` (default) will allow the syllabifier to return multiple syllabifications if variation is predicted. When `variation=True`, the syllabifier will return a list. Setting `variation` to `False` will cause the syllabifier to return a string containing the first predicted syllabification.
Variation: ` >>> f = FinnSyll(variation=True) >>> f.syllabify('runoja') ['ru.no.ja'] >>> f.syllabify('vapaus') ['va.pa.us', 'va.paus'] `
No variation: ` >>> f = FinnSyll(variation=False) >>> f.syllabify('runoja') 'ru.no.ja' >>> f.syllabify('vapaus') 'va.pa.us' `
#### split_compounds
When instantiating a `FinnSyll` object with `split_compounds=True` (default), the syllabifier will first attempt to split the input into constituent words before syllabifying it. This forces the syllabifier to insert a syllable boundary in between identified constituent words. The syllabifier will skip this step if `split_compounds` is set to `False`.
Compound splitting: ` >>> f = FinnSyll(split_compounds=True) >>> f.syllabify('rahoituserien') # rahoitus=erien ['ra.hoi.tus.e.ri.en'] `
No compound splitting: ` >>> f = FinnSyll(split_compounds=False) >>> f.syllabify('rahoituserien') ['ra.hoi.tu.se.ri.en'] # incorrect `
Metadata
Release files for FinnSyll 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| FinnSyll-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for FinnSyll-1.0.0-py2.py3-none-any.whl |
Release files / FinnSyll-1.0.0-py2.py3-none-any.whl
| Download URL | FinnSyll-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 831.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
eb2e99f0d6202dd97651dc9a89ab57996cd04dcd260f0021f26a231abc940ac4
|
|
BLAKE2b-256 checksum How to use checksums |
3d1d8846f9261181de7e3445ca4d344a25ddc0e3e7fc1c790d51bf6df1cc1578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for FinnSyll 1.0.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.