Skip to main content

clld-morphology-plugin

A plugin for modelling morphology in CLLD apps.

Versions PyPI License

Models

The models largely reflect the structure of the morphological components of the cldf-ldd collection.

The basic mechanism of segmentation is implemented such that Wordforms and Stems have a list column parts containing the segmentation. These parts are referenced via indices by WordformParts, StemParts, and WordformStems, so these entities "know" their constituents. XParts can in turn be referenced by Inflections, meaning that InflectionalValues (which belong to InflectionalCategories) are associated with part of a wordform. Wordform structure and inflectional information is rendered as follows:

Morpheme detail view with Morphs, inflectional values, and wordforms/corpus tokens:

If a WordformPart is not associated with a Morph, this is interpreted as zero marking (usually for inflection):

Morphophonological change is modeled by MorphoPhonoInstances connecting MorphoPhonologicalChanges with one or more of the following things: an Inflection, a WordformPart, or a StemPart:

Since InflectionalValues are connected via Inflections to WordformParts, their exponents can be easily visualized:

Stems can have a Lexeme, and WordformParts + Wordforms + InflectionalValue + InflectionalCategory contain all the necessary information to automatically generate inflectional paradigms for lexemes:

Derivations connect Stems with other Stems (or Morphs, when derived from a root) and DerivationalProcesses. These derivational links can then be used to render the "derivational lineage" of a stem:

Detail views of stems also show all derived (directly or indirectly) stems:

DerivationalProcesses know what stems they create (optionally using specific morphs):

Markdown

Since this plugin is primarily being developed for an interactive digital corpus-based grammar, comments on models are rendered using markdown. However, it is up to the app developer to choose what markdown you want to use; the templates here assume that the parent mako template provides a function markdown(request, content). If you want to use the clld-markdown-plugin, use the following code in your top-level .mako:

<%def name="markdown(request, content)">
    <%from clld_markdown_plugin import markdown%>
    ${markdown(request, content)|n}
</%def>

to use plain markdown instead:

<%def name="markdown(request, content)">
    <%from markdown import Markdown%>
    ${Markdown(content)|n}
</%def>

Metadata

Release files for clld-morphology-plugin 0.1.2

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

Source distribution (sdist)

Source distribution for clld-morphology-plugin 0.1.2
File Size Uploaded
clld_morphology_plugin-0.1.2.tar.gz 25.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clld-morphology-plugin 0.1.2
File Interpreter ABI Platform
clld_morphology_plugin-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 64.7 kB

Release files / clld_morphology_plugin-0.1.2.tar.gz

Download URL clld_morphology_plugin-0.1.2.tar.gz
Size 25.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e4430984794fc434a7b983e2f2463128ff5584360aae46c70407a7a027a09660
BLAKE2b-256 checksum
How to use checksums
710fb5d74482811e9ac50169bbd85910e59c250b1efefad4ca24571e833b2051
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.8.10 Linux/5.15.0-73-generic

Release files / clld_morphology_plugin-0.1.2-py3-none-any.whl

Download URL clld_morphology_plugin-0.1.2-py3-none-any.whl
Size 39.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb10520adc7cf80fb30124bf80e61d8c6431ac058111ab960ca0847693af8a3c
BLAKE2b-256 checksum
How to use checksums
0738a3799c40cb7f7208ee73ea8467417685e13b3322755b9633acb8a019dd6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.0 CPython/3.8.10 Linux/5.15.0-73-generic

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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