From 47876da061d93d9e40a50ce7acf44510e8599eb7 Mon Sep 17 00:00:00 2001 From: charlesLoder Date: Tue, 29 Sep 2026 21:46:36 -0400 Subject: [PATCH] docs: update ADDITIONAL_FEATURES docs to include TITLE and DESCRIPTION Closes #198 --- src/schema.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/schema.ts b/src/schema.ts index 4c20588..6ffb80f 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -1515,6 +1515,8 @@ export class Schema implements SylOpts, SchemaVowels { * This property is an array of objects with the following properties each: * - `FEATURE`: the type of feature that the rule is checking — "word", "syllable", or "cluster" * - `HEBREW`: the Hebrew text that the rule matches, given as a string or Regex + * - `TITLE?`: an optional title for the feature, used for documentation purposes only + * - `DESCRIPTION?`: an optional description of the feature, used for documentation purposes only * - `PASS_THROUGH?`: An optional property; `true` if the rule should pass the characters of the result of the `TRANSLITERATION` callback to the be mapped to the schema * - `TRANSLITERATION`: the output of the rule, either a string or a callback whose properties differ based on the `FEATURE` * @@ -1528,6 +1530,8 @@ export class Schema implements SylOpts, SchemaVowels { * const schema = new Schema({ * // truncated for brevity * ADDITIONAL_FEATURES: [{ + * TITLE: "Transliterate 'The Earth' as a whole word", + * DESCRIPTION: "Transliterate 'The Earth' as a whole word rather than individual characters. Just an example.", * FEATURE: "word", * HEBREW: "הָאָרֶץ", * TRANSLITERATION: "The Earth"