Multi-Language Text / String

Validate against: http://json-schema.org/draft-07/schema#

Schema ID: http://schemas.digitallinguistics.io/MultiLangString-5.0.0.json

Description

A piece of text in multiple languages. This is typically used for analyses, database properties, and information in metalanguages rather than transcriptions or translations of data (for those, see the Transcription and Translation schemas). For example, the part of speech for a lexeme might be given as both English noun and Spanish nombre. Each key must be a valid IETF language tag for a language (see the IETF reference page), and the value for that key must be the string of text in that language. Note: MultiLangStrings do not have a type property.

If the text is in only one language and that language is English, it may be represented as a simple string instead of an object. Thus instead of gloss: { en: "M.SG" } you can simply write gloss: "M.SG".

This item must also validate against exactly one of the following schemas:

  • Type: object

    Regular Expression Properties

    Property names which match one of the following regular expressions must validate against the associated schema.

    • Text: ^(((en-GB-oed|i-ami|i-bnn|i-default|i-enochian|i-hak|i-klingon|i-lux|i-mingo|i-navajo|i-pwn|i-tao|i-tay|i-tsu|sgn-BE-FR|sgn-BE-NL|sgn-CH-DE)|(art-lojban|cel-gaulish|no-bok|no-nyn|zh-guoyu|zh-hakka|zh-min|zh-min-nan|zh-xiang))|((([A-Za-z]{2,3}(-([A-Za-z]{3}(-[A-Za-z]{3}){0,2}))?)|[A-Za-z]{4}|[A-Za-z]{5,8})(-([A-Za-z]{4}))?(-([A-Za-z]{2}|[0-9]{3}))?(-([A-Za-z0-9]{5,8}|[0-9][A-Za-z0-9]{3}))*(-([0-9A-WY-Za-wy-z](-[A-Za-z0-9]{2,8})+))*(-(x(-[A-Za-z0-9]{1,8})+))?)|(x(-[A-Za-z0-9]{1,8})+))$

      Type: string

      Description

      The string of text in the specified language

    Additional Properties

    Any additional properties must adhere to the following schema:

    No values are valid for this schema.

  • Type: string

Examples

The following are example values for this schema:

  • "man"
  • {
      "en": "man",
      "fr": "homme"
    }