Class: Allomorph

.models. Allomorph

A class representing an Allomorph of a Lexeme

new Allomorph( [data])

Create a new Allomorph
Parameters:
Name Type Argument Description
data Object <optional>
The data to use for the Allomorph
Properties
Name Type Description
environments Array | Set An Array or Set of environments, as strings. May be empty.
transcription MultiLangString A transcription of this allomorph, optionally in multiple orthographies. Do not include any leading or trailing tokens (e.g. hyphens, equal signs). Should be formatted as a MultiLangString.
Properties:
Name Type Description
environments Set A set of the (morpho)phonological environments for this allomorph
transcription MultiLangString The transcription of this allomorph, as a MultiLangString
txn String A shorthand for accessing the default orthography of the `transcription` object, if one is set
Example
const allomorph = new Allomorph({
  environments:  ['_i', '_y'],
  transcription: { ipa: 't͡ʃ' }
});

console.log(allomorph.transcription.ipa);      // t͡ʃ
console.log(allomorph.environments.has('_i')); // true