A morphology plugin for CLLD apps.
Project description
clld-morphology-plugin
A plugin for modelling morphology in CLLD apps.
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 Wordform
s and Stem
s have a list column parts
containing the segmentation.
These parts are referenced via indices by WordformPart
s, StemPart
s, and WordformStem
s, so these entities "know" their constituents.
XParts
can in turn be referenced by Inflection
s, meaning that InflectionalValue
s (which belong to InflectionalCategorie
s) are associated with part of a wordform.
Wordform structure and inflectional information is rendered as follows:
Morpheme
detail view with Morph
s, 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 MorphoPhonoInstance
s connecting MorphoPhonologicalChange
s with one or more of the following things: an Inflection
, a WordformPart
, or a StemPart
:
Since InflectionalValue
s are connected via Inflection
s to WordformPart
s, their exponents can be easily visualized:
Stems
can have a Lexeme
, and WordformPart
s + Wordforms
+ InflectionalValue
+ InflectionalCategory
contain all the necessary information to automatically generate inflectional paradigms for lexemes:
Derivation
s connect Stems
with other Stem
s (or Morph
s, when derived from a root) and DerivationalProcess
es.
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:
DerivationalProcess
es 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>
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
Built Distribution
Hashes for clld_morphology_plugin-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4430984794fc434a7b983e2f2463128ff5584360aae46c70407a7a027a09660 |
|
MD5 | a318444a3837b25be616056070ce177f |
|
BLAKE2b-256 | 710fb5d74482811e9ac50169bbd85910e59c250b1efefad4ca24571e833b2051 |
Hashes for clld_morphology_plugin-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb10520adc7cf80fb30124bf80e61d8c6431ac058111ab960ca0847693af8a3c |
|
MD5 | 5a307f05b95ddd9390a8006273b3bfb7 |
|
BLAKE2b-256 | 0738a3799c40cb7f7208ee73ea8467417685e13b3322755b9633acb8a019dd6d |