Skip to content

AsyncPipeline

AsyncPipeline = Promise<string>

Defined in: lib/pipe.ts:10

AsyncPipeline(text, cfg?): Promise<string>

string

{ lower: CallableDict<LowerPattern>; upper?: CallableDict<UpperPattern>; } = ...

Predefined alphabets are in dicts.alphabets.

Default

alphabets.cyrillic

CallableDict<LowerPattern>

CallableDict<UpperPattern>

boolean = ...

If set to false, may cause unwanted changes in acronyms.

Default

true

boolean = ...

Do replace ґ(g) by г(h) in cyrillic alphabet?

Value Example
true Ґвалт ґвалт
false Гвалт гвалт
true <tarH>ґ</tarH>валт <tarH>Ґ</tarH>валт
false <tarH>г</tarH>валт <tarH>Г</tarH>валт

Default

false

OptionJ = ...

When to replace і(i) by й(j) after vowels Example
яна і ён
never яна і ён
random яна і ён or яна й ён
always яна й ён

Has no effect with abc set to dicts.alphabets.latinJi.

Default

"never"

string = ...

String to replace "<" with.

Default

"<"

Example

"&lt;"

string = ...

String to replace "\n" with.

Default

"\n"

Example

"<br>"

string = ...

Placeholder for parts that should not be fixed like those enclosed in < >.

Change only if the default value interferes with your text.

Default

" \ue0fe "

Variation = ...

Which variation is used if a part of word is variable Example
Гродна
no (main) Гродна
first Горадня
all (Гродна|Горадня)

Default

"all"

{ fix?: TransformString; letterH?: TransformString; variable?: VariationWrappers; } | null = ...

Used for wrapping changed parts. Predefined dicts are in wrappers.

If null, wrapping changes will be skipped.

Default

null

Promise<string>

steps: AsyncTaraskStep<any>[]

Defined in: lib/pipe.ts:12