| ID | 94fa0fba-ce88-44e6-b58b-e0339ec2df7c |
|---|---|
| DeertopiaVisibility | public |
Language (linguistics)
The expressiveness of language comes from the ability to compose, from known, simpler signs, into new, more complex signs.
unimplemented! (center-block)
{:type "center-block",
:affiliated {},
:contents-begin 292,
:contents-end 332,
:position
{:start {:line 10, :column 1, :offset 277},
:end {:line 13, :column 1, :offset 345}},
:children ([:p ("Madeleine is interested in linguistics.\n")])}
The example sentence is composed of only 5 words, and the meaning of the sentence is derived exactly from the meaning of each individual word.
Definition
We shall model this composition with a binary operation (•) : Sign → Sign → Sign, pronounced merge.
(•) is defined with four distinct merge operations (•S, •L, •M, •P) that operate on each individual strata.
Formally,
- a language
is a set of signs.
- a grammar
is a set of signs (called the grammar's lexicon) together with finite set of functions that operate on signs. Often, grammars for natural languages at least include (•).
A given grammar inductively generates a language. I choose to express this as you would in a language like Idris 2.This would be a better fit for Grammatical Framework.
Lexicon : Type
data MyLanguage : Type where
FromLexicon : Lexicon -> MyLanguage
Merge : MyLanguage -> MyLanguage -> MyLanguage
Example of merge
À propos natural languages, (the phonological merge operation) is typically space-separated concatenation. That is, , where denotes concatenation. Remember that is working at the sign-level, not the grapheme/token-level; otherwise, we'dn't need the space.