Class: Lexeme

.models. Lexeme

A class representing a Lexeme

new Lexeme( [data])

Create a new Lexeme
Parameters:
Name Type Argument Description
data Object <optional>
The raw data for the lexeme. See the DLx specification for a Lexeme for more information on formatting Lexeme data.
Properties
Name Type Argument Description
allomorphs Array <optional>
An array of allomorphs. You can use the Allomorph class to ensure the data is formatted correctly.
citationForm Object <optional>
The citation form for this lexeme, formatted as a MultiLangString.
components Array <optional>
An array of Lexeme References to other lexemes that are components of the current lexeme. Each item must be formatted as a LexemeReference object.
dateCreated String | Date <optional>
A date string or date object representing the time this lexeme was originally created. If none is supplied, dateCreated will be set to the current date-time.
dateModified String | Date <optional>
A date string or date object representing the time this lexeme was last modified. If none is supplied, dateModified will be set to the current date-time.
examples Array <optional>
An array of example phrases illustrating this lexeme's uses. Each item must be formatted as a Phrase.
features Object | Array <optional>
An object containing grammatical features and their values. May also be a Map object.
includedIn Array <optional>
An Array of references to lexemes that have the current lexeme as a component. Each item should be formatted as a LexemeReference.
key String <optional>
A human-readable key that uniquely identifies this lexeme or variant within its lexicon. Best practice is for the key to consist of the lemma form of the word in the default orthography, and if the word is a homonym, the homonym number. However, any value is acceptable as long as it is unique within the lexicon. (Keys do not need to be unique across lexicons.) Must be formatted as an Abbreviation.
lemma Object The lemma form of this lexeme. A lemma is the particular form conventionally used to represent a particular lexeme. It may differ drastically from the citation form or headword form. For example, the form be is typically used as the lemma form of the English verb to be, with its variants am, are, is, etc. Lemmas may be represented in multiple orthographies. Do not include any leading or trailing tokens (e.g. hyphens, equal signs). Must be in the format of a MultiLangString
lexicalRelations Array <optional>
An array of objects formatted as a LexemeReference, with an additional required "relation" property. See the Lexeme format for more details.
literalMeaning Object <optional>
The literal meaning of the lexeme, optionally in multiple orthographies. Must be formatted as a MultiLangString.
morphemeType Object <optional>
The type of morpheme or complex construction that this lexeme is, optionally in multiple languages. Examples: root, stem, bipartite stem, enclitic, prefix, inflected word, phrase, circumfix. Must be formatted as a MultiLangString.
notes Array <optional>
An array of notes about this lexeme. Each note should adhere to the Note format.
references Array <optional>
An array of bibliographic references about this lexeme. Each item should adhere to the Reference format.
senses Array An array of senses for this lexeme. Each item should be formatted as a Sense object. See the Lexeme schema for more details.
sources Array <optional>
An array of attested sources for this lexeme, as strings. This will often be the initials of a speaker, but could also be the abbreviation of the story the lexeme was found it, or other types of sources.
syllableStructure String <optional>
An abstract representation of the syllable structure of this form, as a string, e.g. `CVC`.
tags Object | Array <optional>
An object containing tags and their values. May also be an iterable object, whose items are arrays of tags and their values (in other words, the standard method for instantiating a new Map object; see MDN's Map documentation for more details).
tone String <optional>
A string representing the tonal pattern of this lexeme or variant. Examples: `HLH`, `323`, etc.
url String <optional>
A URI where this lexeme can be accessed, as a string.
variantOf Object <optional>
When this lexeme is a variant of another lexeme, this field should contain a reference (formatted as a LexemeReference) to the other Lexeme. Lexemes may only be variants of one other Lexeme.
variants Array <optional>
An array of variants of this lexeme. Each item should be formatted as a LexemeReference, and must also have the "variantType" property specified.
variantType Object <optional>
If this lexeme is a variant of another lexeme or sense, this field can be used to specify the type of variant. Possible values might be a person's name (representing an idiolectal variant), or simply `idiolectal`, or `dialectal`, or the name of the dialect, or `rapid speech`, etc. Must be in the format of a MultiLangString.
Properties:
Name Type Description
allomorphs Array An array of allomorphs of this lexeme. See the Allomorph class for more details.
citationForm MultiLangString An object containing transcriptions of the citation form of this lexeme, as a MultiLangString.
citation String A shorthand for accessing the default orthography of the `transcription` object, if one is set
components Array An array of Lexeme References to other lexemes that are components of the current lexeme. Each item is an instance of LexemeReference.
dateCreated Date A Date object representing the time this lexeme was originally created
dateModified Date A Date object representing the time this lexeme was last updated. This property is updated automatically when certain simple properties of the lexeme are changed.
examples Array An array of example phrases illustrating this lexeme's uses
features Map A Map object containing grammatical features and values for this lexeme. See the MDN documentation on the Map object for more details about its properties and methods.
headword String A shorthand for accessing the default orthography of the `lemma` object, if one is set
includedIn Array An array containing references to each lexeme that the current lexeme is a component of. Each item is a LexemeReference object.
key String A human-readable key that uniquely identifies this lexeme or variant within its lexicon.
lemma MultiLangString The lemma form of this lexeme, as a MultiLangString.
lexicalRelations Array An array of the lexical relations that this lexeme has to other lexemes or variants.
literalMeaning MultiLangString A MultiLangString containing the literal meaning of this lexeme.
literal String A shorthand for accessing the default orthography of the `literalMeaning` object, if one is set
morphemeType MultiLangString A MultiLangString containing the morpheme type for this lexeme.
morphType String A shorthand for accessing the default orthography of the `morphemeType` object, if one is set
notes Array An array of notes about this lexeme. Each note is an instance of the Note class.
references Array An array of bibliographic references about this lexeme. Each item is an instance of the Reference class.
senses Array An array of senses for this lexeme. Each item is a Sense object.
sources Array An array of attested sources for this lexeme, as strings.
syllableStructure String An abstract representation of the syllable structure of this form, e.g. `CVC`.
tags Tags A Map object containing tags and values for this lexeme. See the MDN documentation on the Map object for more details about its properties and methods.
tone String A string representing the tonal pattern of this lexeme or variant. Examples: `HLH`, `323`, etc.
url String A URI where this lexeme can be accessed, as a string.
variantOf LexemeReference A LexemeReference object containing a reference to another lexeme or sense, which the current lexeme is a variant of.
variants Array An array of variants of this lexeme. Each item is a LexemeReference.
variantType MultiLangString If this lexeme is a variant of another lexeme or sense, this field can be used to specify the type of variant. Possible values might be a person's name (representing an idiolectal variant), or simply `idiolectal`, or `dialectal`, or the name of the dialect, or `rapid speech`, etc. This field is a MultiLangString.
varType String A shorthand for accessing the default orthography of the `variantType` object, if one is set

Extends

  • Model