SBL
Defined in: src/schema.ts:1982
The default schema according to SBL’s academic style guide.
Whereas a new Schema must have all required properties when constructed, this schema is meant to be used as a default so particular properties can be overidden (see example).
If the property is not set, the default value will be used. Each property is documented below with their default values.
Click into each property’s “Overrides” for more information about that property.
schema
Example
Section titled “Example”Extend the default schema
transliterate("שָׁלוֹם", { SHIN: "sh" });// shālômExtends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SBL(
schema):SBL
Defined in: src/schema.ts:2200
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
schema | Partial<Schema> |
Returns
Section titled “Returns”SBL
Overrides
Section titled “Overrides”Consonants
Section titled “Consonants”ALEF:
string
Defined in: src/schema.ts:2042
Default
Section titled “Default”"ʾ"Overrides
Section titled “Overrides”AYIN:
string
Defined in: src/schema.ts:2086
Default
Section titled “Default”"ʿ"Overrides
Section titled “Overrides”BET:
string
Defined in: src/schema.ts:2044
Default
Section titled “Default”"b"Overrides
Section titled “Overrides”BET_DAGESH
Section titled “BET_DAGESH”BET_DAGESH:
string|undefined
Defined in: src/schema.ts:2046
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”DALET:
string
Defined in: src/schema.ts:2052
Default
Section titled “Default”"d"Overrides
Section titled “Overrides”DALET_DAGESH
Section titled “DALET_DAGESH”DALET_DAGESH:
string|undefined
Defined in: src/schema.ts:2054
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”FINAL_KAF
Section titled “FINAL_KAF”FINAL_KAF:
string
Defined in: src/schema.ts:2068
Default
Section titled “Default”"k"Overrides
Section titled “Overrides”FINAL_MEM
Section titled “FINAL_MEM”FINAL_MEM:
string
Defined in: src/schema.ts:2076
Default
Section titled “Default”"m"Overrides
Section titled “Overrides”FINAL_NUN
Section titled “FINAL_NUN”FINAL_NUN:
string
Defined in: src/schema.ts:2080
Default
Section titled “Default”"n"Overrides
Section titled “Overrides”FINAL_PE
Section titled “FINAL_PE”FINAL_PE:
string
Defined in: src/schema.ts:2088
Default
Section titled “Default”"p"Overrides
Section titled “Overrides”FINAL_TSADI
Section titled “FINAL_TSADI”FINAL_TSADI:
string
Defined in: src/schema.ts:2094
Default
Section titled “Default”"ṣ"Overrides
Section titled “Overrides”GIMEL:
string
Defined in: src/schema.ts:2048
Default
Section titled “Default”"g"Overrides
Section titled “Overrides”GIMEL_DAGESH
Section titled “GIMEL_DAGESH”GIMEL_DAGESH:
string|undefined
Defined in: src/schema.ts:2050
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”HE:
string
Defined in: src/schema.ts:2056
Default
Section titled “Default”"h"Overrides
Section titled “Overrides”HET:
string
Defined in: src/schema.ts:2062
Default
Section titled “Default”"ḥ"Overrides
Section titled “Overrides”KAF:
string
Defined in: src/schema.ts:2070
Default
Section titled “Default”"k"Overrides
Section titled “Overrides”KAF_DAGESH
Section titled “KAF_DAGESH”KAF_DAGESH:
string|undefined
Defined in: src/schema.ts:2072
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”LAMED:
string
Defined in: src/schema.ts:2074
Default
Section titled “Default”"l"Overrides
Section titled “Overrides”MEM:
string
Defined in: src/schema.ts:2078
Default
Section titled “Default”"m"Overrides
Section titled “Overrides”NUN:
string
Defined in: src/schema.ts:2082
Default
Section titled “Default”"n"Overrides
Section titled “Overrides”PE:
string
Defined in: src/schema.ts:2090
Default
Section titled “Default”"p"Overrides
Section titled “Overrides”PE_DAGESH
Section titled “PE_DAGESH”PE_DAGESH:
string|undefined
Defined in: src/schema.ts:2092
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”QOF:
string
Defined in: src/schema.ts:2098
Default
Section titled “Default”"q"Overrides
Section titled “Overrides”RESH:
string
Defined in: src/schema.ts:2100
Default
Section titled “Default”"r"Overrides
Section titled “Overrides”SAMEKH
Section titled “SAMEKH”SAMEKH:
string
Defined in: src/schema.ts:2084
Default
Section titled “Default”"s"Overrides
Section titled “Overrides”SHIN:
string
Defined in: src/schema.ts:2102
Default
Section titled “Default”"š"Overrides
Section titled “Overrides”SIN:
string
Defined in: src/schema.ts:2104
Default
Section titled “Default”"ś"Overrides
Section titled “Overrides”TAV:
string
Defined in: src/schema.ts:2106
Default
Section titled “Default”"t"Overrides
Section titled “Overrides”TAV_DAGESH
Section titled “TAV_DAGESH”TAV_DAGESH:
string|undefined
Defined in: src/schema.ts:2108
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”TET:
string
Defined in: src/schema.ts:2064
Default
Section titled “Default”"ṭ"Overrides
Section titled “Overrides”TSADI:
string
Defined in: src/schema.ts:2096
Default
Section titled “Default”"ṣ"Overrides
Section titled “Overrides”VAV:
string
Defined in: src/schema.ts:2058
Default
Section titled “Default”"w"Overrides
Section titled “Overrides”YOD:
string
Defined in: src/schema.ts:2066
Default
Section titled “Default”"y"Overrides
Section titled “Overrides”ZAYIN:
string
Defined in: src/schema.ts:2060
Default
Section titled “Default”"z"Overrides
Section titled “Overrides”DAGESH
Section titled “DAGESH”DAGESH:
string
Defined in: src/schema.ts:2008
Default
Section titled “Default”""Overrides
Section titled “Overrides”DAGESH_CHAZAQ
Section titled “DAGESH_CHAZAQ”DAGESH_CHAZAQ:
string|boolean
Defined in: src/schema.ts:2010
Default
Section titled “Default”trueOverrides
Section titled “Overrides”MAQAF:
string
Defined in: src/schema.ts:2012
Default
Section titled “Default”"-"Overrides
Section titled “Overrides”PASEQ:
string
Defined in: src/schema.ts:2014
Default
Section titled “Default”""Overrides
Section titled “Overrides”SOF_PASUQ
Section titled “SOF_PASUQ”SOF_PASUQ:
string
Defined in: src/schema.ts:2016
Default
Section titled “Default”""Overrides
Section titled “Overrides”Orthographic Features
Section titled “Orthographic Features”ADDITIONAL_FEATURES
Section titled “ADDITIONAL_FEATURES”ADDITIONAL_FEATURES: (
WordFeature|SyllableFeature|ClusterFeature)[] |undefined
Defined in: src/schema.ts:2175
Default
Section titled “Default”[ { FEATURE: "syllable", HEBREW: /[\u{05B4}\u{05BB}]/u, TRANSLITERATION: (syllable, heb, schema) => { // matches any syllable with a hiriq or qubuts, // and checks for a "long" vowel (i.e a hiriq or qubuts in an accented syllable without a mater) const hasMater = syllable.clusters.some((cluster) => cluster.isMater); if (syllable.isAccented && !hasMater) { const macron = "\u0304"; const output = syllable.hasVowelName("HIRIQ") ? schema["HIRIQ"] + macron : schema["QUBUTS"] + macron; return syllable.text.replace(heb, output.normalize("NFC")); } return syllable.text; } }, { FEATURE: "syllable", HEBREW: "\u{05BC}", TRANSLITERATION: (syllable, heb) => { // matches any word with a dagesh, // and checks for a euphonic dagesh const currWord = syllable?.word?.value; const prevWord = currWord?.prev?.value; if (!currWord || !prevWord || !prevWord.isInConstruct) { return syllable.text; }
if (syllable.prev) { return syllable.text; }
return syllable.text.replace(heb, ""); } }]Example
Section titled “Example”Extending SBL with a new feature and keeping the default features
import { SBL, transliterate } from "hebrew-transliteration";
const sbl = new SBL();const oldFeatures = sbl.ADDITIONAL_FEATURES;const newFeature = { FEATURE: "word", HEBREW: "הָאָרֶץ", TRANSLITERATION: "The Earth"}
transliterate("הָאָרֶץ", { ADDITIONAL_FEATURES: [...oldFeatures, newFeature],});Overrides
Section titled “Overrides”BET_DAGESH
Section titled “BET_DAGESH”BET_DAGESH:
string|undefined
Defined in: src/schema.ts:2046
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”DAGESH_CHAZAQ
Section titled “DAGESH_CHAZAQ”DAGESH_CHAZAQ:
string|boolean
Defined in: src/schema.ts:2010
Default
Section titled “Default”trueOverrides
Section titled “Overrides”DALET_DAGESH
Section titled “DALET_DAGESH”DALET_DAGESH:
string|undefined
Defined in: src/schema.ts:2054
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”DIVINE_NAME
Section titled “DIVINE_NAME”DIVINE_NAME:
string
Defined in: src/schema.ts:2110
Default
Section titled “Default”"yhwh"Overrides
Section titled “Overrides”DIVINE_NAME_ELOHIM
Section titled “DIVINE_NAME_ELOHIM”DIVINE_NAME_ELOHIM:
string|undefined
Defined in: src/schema.ts:2112
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”FURTIVE_PATAH
Section titled “FURTIVE_PATAH”FURTIVE_PATAH:
string
Defined in: src/schema.ts:2020
Default
Section titled “Default”"a"Overrides
Section titled “Overrides”GIMEL_DAGESH
Section titled “GIMEL_DAGESH”GIMEL_DAGESH:
string|undefined
Defined in: src/schema.ts:2050
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”HIRIQ_YOD
Section titled “HIRIQ_YOD”HIRIQ_YOD:
string
Defined in: src/schema.ts:2022
Default
Section titled “Default”"î"Overrides
Section titled “Overrides”HOLAM_VAV
Section titled “HOLAM_VAV”HOLAM_VAV:
string
Defined in: src/schema.ts:2030
Default
Section titled “Default”"ô"Overrides
Section titled “Overrides”KAF_DAGESH
Section titled “KAF_DAGESH”KAF_DAGESH:
string|undefined
Defined in: src/schema.ts:2072
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”MS_SUFX
Section titled “MS_SUFX”MS_SUFX:
string
Defined in: src/schema.ts:2040
Default
Section titled “Default”"āyw"Overrides
Section titled “Overrides”ON_COMPLETE?
Section titled “ON_COMPLETE?”
optionalON_COMPLETE?: (result,context) =>string
Defined in: src/schema.ts:1788
A callback that is invoked when transliteration is complete
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
result | string |
context | { original: string; schema: Omit<Schema, "ON_COMPLETE">; text: Text; } |
context.original | string |
context.schema | Omit<Schema, "ON_COMPLETE"> |
context.text | Text |
Returns
Section titled “Returns”string
Examples
Section titled “Examples”Modifying the result
const schema = new Schema({ // truncated for brevity ON_COMPLETE: (result) => result.replace("th", "t'h"),});transliterate("תִתְהַלָּֽל", schema);// tit'hallālAccessing callback arguments
const schema = new Schema({ // truncated for brevity ON_COMPLETE: (result, { original, schema, text }) => { console.log("Original Hebrew:", original); console.log("Schema value:", schema.PATAH); console.log("Word count:", text.words.length); return result; },});transliterate("שָּׁלוֹם", schema);// "šālôm"// Original Hebrew: שָּׁלוֹם// Schema value: a// Word count: 1Inherited from
Section titled “Inherited from”PATAH_HE
Section titled “PATAH_HE”PATAH_HE:
string|undefined
Defined in: src/schema.ts:2034
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”PE_DAGESH
Section titled “PE_DAGESH”PE_DAGESH:
string|undefined
Defined in: src/schema.ts:2092
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”QAMATS_HE
Section titled “QAMATS_HE”QAMATS_HE:
string
Defined in: src/schema.ts:2032
Default
Section titled “Default”"â"Overrides
Section titled “Overrides”SEGOL_HE
Section titled “SEGOL_HE”SEGOL_HE:
string|undefined
Defined in: src/schema.ts:2036
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”SEGOL_YOD
Section titled “SEGOL_YOD”SEGOL_YOD:
string
Defined in: src/schema.ts:2026
Default
Section titled “Default”"ê"Overrides
Section titled “Overrides”SHIN:
string
Defined in: src/schema.ts:2102
Default
Section titled “Default”"š"Overrides
Section titled “Overrides”SHUREQ
Section titled “SHUREQ”SHUREQ:
string
Defined in: src/schema.ts:2028
Default
Section titled “Default”"û"Overrides
Section titled “Overrides”SIN:
string
Defined in: src/schema.ts:2104
Default
Section titled “Default”"ś"Overrides
Section titled “Overrides”STRESS_MARKER
Section titled “STRESS_MARKER”STRESS_MARKER: {
exclude?:"never"|"final"|"single";location:"before-syllable"|"after-syllable"|"before-vowel"|"after-vowel";mark:string; } |undefined
Defined in: src/schema.ts:2177
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ exclude?: "never" | "final" | "single"; location: "before-syllable" | "after-syllable" | "before-vowel" | "after-vowel"; mark: string; }
exclude?
Section titled “exclude?”
optionalexclude?:"never"|"final"|"single"
Whether to exclude the mark on certain syllables
Default
Section titled “Default”"never"Examples
Section titled “Examples”undefined and "never" are the same
const schema = new Schema({ STRESS_MARKER: { location: "after-vowel", mark: "\u0301", },});transliterate("בֹּ֖קֶר י֥וֹם אֶחָֽד׃ ", schema);// bṓqer yốm ʾeḥā́dExclude only single syllable words using "single"
const schema = new Schema({ STRESS_MARKER: { location: "after-vowel", mark: "\u0301", exclude: "single", },});transliterate("בֹּ֖קֶר י֥וֹם אֶחָֽד׃ ", schema);// bṓqer yôm ʾeḥā́dExclude when accent is on the final syllable, implicitly excluding single syllable words using "final"
const schema = new Schema({ STRESS_MARKER: { location: "after-vowel", mark: "\u0301", exclude: "final", },});transliterate("בֹּ֖קֶר י֥וֹם אֶחָֽד׃ ", schema);// bṓqer yôm ʾeḥādlocation
Section titled “location”location:
"before-syllable"|"after-syllable"|"before-vowel"|"after-vowel"
The location of the mark
mark:
string
A string to use as the marker
undefined
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”SYLLABLE_SEPARATOR
Section titled “SYLLABLE_SEPARATOR”SYLLABLE_SEPARATOR:
string|undefined
Defined in: src/schema.ts:2114
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”TAV_DAGESH
Section titled “TAV_DAGESH”TAV_DAGESH:
string|undefined
Defined in: src/schema.ts:2108
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”TSERE_HE
Section titled “TSERE_HE”TSERE_HE:
string|undefined
Defined in: src/schema.ts:2038
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”TSERE_YOD
Section titled “TSERE_YOD”TSERE_YOD:
string
Defined in: src/schema.ts:2024
Default
Section titled “Default”"ê"Overrides
Section titled “Overrides”Syllabification
Section titled “Syllabification”allowNoNiqqud
Section titled “allowNoNiqqud”allowNoNiqqud:
boolean|undefined
Defined in: src/schema.ts:2193
Default
Section titled “Default”trueOverrides
Section titled “Overrides”article
Section titled “article”article:
boolean|undefined
Defined in: src/schema.ts:2191
Default
Section titled “Default”trueOverrides
Section titled “Overrides”holemHaser
Section titled “holemHaser”holemHaser:
"update"|"preserve"|"remove"|undefined
Defined in: src/schema.ts:2197
Default
Section titled “Default”"remove"Overrides
Section titled “Overrides”ketivQeres
Section titled “ketivQeres”ketivQeres:
KetivQere[] |undefined
Defined in: src/schema.ts:2199
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”longVowels
Section titled “longVowels”longVowels:
boolean|undefined
Defined in: src/schema.ts:2179
Default
Section titled “Default”trueOverrides
Section titled “Overrides”qametsQatan
Section titled “qametsQatan”qametsQatan:
boolean|undefined
Defined in: src/schema.ts:2181
Default
Section titled “Default”trueOverrides
Section titled “Overrides”shevaAfterMeteg
Section titled “shevaAfterMeteg”shevaAfterMeteg:
boolean|undefined
Defined in: src/schema.ts:2183
Default
Section titled “Default”trueOverrides
Section titled “Overrides”shevaWithMeteg
Section titled “shevaWithMeteg”shevaWithMeteg:
boolean|undefined
Defined in: src/schema.ts:2185
Default
Section titled “Default”falseOverrides
Section titled “Overrides”sqnmlvy
Section titled “sqnmlvy”sqnmlvy:
boolean|undefined
Defined in: src/schema.ts:2187
Default
Section titled “Default”trueOverrides
Section titled “Overrides”strict
Section titled “strict”strict:
boolean|undefined
Defined in: src/schema.ts:2195
Default
Section titled “Default”falseOverrides
Section titled “Overrides”wawShureq
Section titled “wawShureq”wawShureq:
boolean|undefined
Defined in: src/schema.ts:2189
Default
Section titled “Default”trueOverrides
Section titled “Overrides”Taamim
Section titled “Taamim”MAQAF:
string
Defined in: src/schema.ts:2012
Default
Section titled “Default”"-"Overrides
Section titled “Overrides”SOF_PASUQ
Section titled “SOF_PASUQ”SOF_PASUQ:
string
Defined in: src/schema.ts:2016
Default
Section titled “Default”""Overrides
Section titled “Overrides”MS_SUFX
Section titled “MS_SUFX”MS_SUFX:
string
Defined in: src/schema.ts:2040
Default
Section titled “Default”"āyw"Overrides
Section titled “Overrides”Vowels
Section titled “Vowels”FURTIVE_PATAH
Section titled “FURTIVE_PATAH”FURTIVE_PATAH:
string
Defined in: src/schema.ts:2020
Default
Section titled “Default”"a"Overrides
Section titled “Overrides”HATAF_PATAH
Section titled “HATAF_PATAH”HATAF_PATAH:
string
Defined in: src/schema.ts:1988
Default
Section titled “Default”"ă"Overrides
Section titled “Overrides”HATAF_QAMATS
Section titled “HATAF_QAMATS”HATAF_QAMATS:
string
Defined in: src/schema.ts:1990
Default
Section titled “Default”"ŏ"Overrides
Section titled “Overrides”HATAF_SEGOL
Section titled “HATAF_SEGOL”HATAF_SEGOL:
string
Defined in: src/schema.ts:1986
Default
Section titled “Default”"ĕ"Overrides
Section titled “Overrides”HIRIQ:
string
Defined in: src/schema.ts:1992
Default
Section titled “Default”"i"Overrides
Section titled “Overrides”HIRIQ_YOD
Section titled “HIRIQ_YOD”HIRIQ_YOD:
string
Defined in: src/schema.ts:2022
Default
Section titled “Default”"î"Overrides
Section titled “Overrides”HOLAM:
string
Defined in: src/schema.ts:2002
Default
Section titled “Default”"ō"Overrides
Section titled “Overrides”HOLAM_HASER
Section titled “HOLAM_HASER”HOLAM_HASER:
string
Defined in: src/schema.ts:2004
Default
Section titled “Default”"ō"Overrides
Section titled “Overrides”HOLAM_VAV
Section titled “HOLAM_VAV”HOLAM_VAV:
string
Defined in: src/schema.ts:2030
Default
Section titled “Default”"ô"Overrides
Section titled “Overrides”PATAH:
string
Defined in: src/schema.ts:1998
Default
Section titled “Default”"a"Overrides
Section titled “Overrides”PATAH_HE
Section titled “PATAH_HE”PATAH_HE:
string|undefined
Defined in: src/schema.ts:2034
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”QAMATS
Section titled “QAMATS”QAMATS:
string
Defined in: src/schema.ts:2000
Default
Section titled “Default”"ā"Overrides
Section titled “Overrides”QAMATS_HE
Section titled “QAMATS_HE”QAMATS_HE:
string
Defined in: src/schema.ts:2032
Default
Section titled “Default”"â"Overrides
Section titled “Overrides”QAMATS_QATAN
Section titled “QAMATS_QATAN”QAMATS_QATAN:
string
Defined in: src/schema.ts:2018
Default
Section titled “Default”"o"Overrides
Section titled “Overrides”QUBUTS
Section titled “QUBUTS”QUBUTS:
string
Defined in: src/schema.ts:2006
Default
Section titled “Default”"ū"Overrides
Section titled “Overrides”SEGOL:
string
Defined in: src/schema.ts:1996
Default
Section titled “Default”"e"Overrides
Section titled “Overrides”SEGOL_HE
Section titled “SEGOL_HE”SEGOL_HE:
string|undefined
Defined in: src/schema.ts:2036
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”SEGOL_YOD
Section titled “SEGOL_YOD”SEGOL_YOD:
string
Defined in: src/schema.ts:2026
Default
Section titled “Default”"ê"Overrides
Section titled “Overrides”SHUREQ
Section titled “SHUREQ”SHUREQ:
string
Defined in: src/schema.ts:2028
Default
Section titled “Default”"û"Overrides
Section titled “Overrides”TSERE:
string
Defined in: src/schema.ts:1994
Default
Section titled “Default”"ē"Overrides
Section titled “Overrides”TSERE_HE
Section titled “TSERE_HE”TSERE_HE:
string|undefined
Defined in: src/schema.ts:2038
Default
Section titled “Default”undefinedOverrides
Section titled “Overrides”TSERE_YOD
Section titled “TSERE_YOD”TSERE_YOD:
string
Defined in: src/schema.ts:2024
Default
Section titled “Default”"ê"Overrides
Section titled “Overrides”VOCAL_SHEVA
Section titled “VOCAL_SHEVA”VOCAL_SHEVA:
string
Defined in: src/schema.ts:1984
Default
Section titled “Default”"ə"