info~Info

A class which affords some information about a language

Methods

static getBranch() → {String}

Get the branch of the language, if any
Returns:
String - The language branch: semitic, etc.

static getCode() → {String}

Get the code of the language
Returns:
String - The language ISO639-2 code: "ara", "jpn", "eng", etc.

static getDir() → {String}

Get the direction of writing of the language: ltr or rtl
Returns:
String - The language direction: left to right (ltr) or right to left (rtl)

static getFamily() → {String}

Get the family of the language
Returns:
String - The language family: Afro-asiatic, Japonic, etc.

static getName() → {String}

Get the name of the language
Returns:
String - the language name: arabic, english, japanese, etc.

static getOrigName() → {String}

Get the name of the language in its own writing system
Returns:
String - the language original name: عربية, english, 日本語, etc.

static getWordOrder() → {String}

Get the words order:
  • s: Subject
  • v: Verb
  • o: Object
For example, English is "svo"
Returns:
String - The words order in the language