Typographist
    Preparing search index...

    Class TypographistRules<TLocale>

    Supplies locale rules from paired Knuth–Liang and Khristov datasets, or a subclass's own storage. Typographist calls compile once per registration with its configured useFast flag.

    import { TypographistRules } from '@elmenov-softworks/typographist';

    const rules = new TypographistRules({
    standard: {
    locale: 'en', alphabet: 'abcd', leftMin: 1, rightMin: 1, patterns: ['a1b'],
    },
    fast: {
    locale: 'en', alphabet: 'abcd', leftMin: 1, rightMin: 1,
    vowels: 'a', consonants: 'bcd', specialLetters: '',
    },
    });
    rules.compile(true); // Returns Khristov classifications.

    Type Parameters

    • TLocale extends string = string

    Implements

    Index