pravapis 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5837 -0
- package/dist/index.d.cts +33 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +5806 -0
- package/dist/names.cjs +6060 -0
- package/dist/names.d.cts +13 -0
- package/dist/names.d.ts +13 -0
- package/dist/names.js +6032 -0
- package/dist/pipeline-CQ31DzWB.d.ts +155 -0
- package/dist/pipeline-T0FQH27h.d.cts +155 -0
- package/dist/translit.cjs +1698 -0
- package/dist/translit.d.cts +44 -0
- package/dist/translit.d.ts +44 -0
- package/dist/translit.js +1667 -0
- package/dist/types-wqNurkip.d.cts +146 -0
- package/dist/types-wqNurkip.d.ts +146 -0
- package/package.json +63 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { C as Converter } from './pipeline-T0FQH27h.cjs';
|
|
2
|
+
import { O as Orthography, c as conversionResultToDict } from './types-wqNurkip.cjs';
|
|
3
|
+
export { C as Conversion, a as ConversionResult, M as Method, T as TokenExplanation } from './types-wqNurkip.cjs';
|
|
4
|
+
|
|
5
|
+
declare const ENGINE_VERSION = "0.1.0";
|
|
6
|
+
|
|
7
|
+
declare const DATA_VERSION: string;
|
|
8
|
+
interface ConvertOptions {
|
|
9
|
+
from?: Orthography;
|
|
10
|
+
to: Orthography;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Convert `text` between the two orthographies.
|
|
14
|
+
*
|
|
15
|
+
* convert("снег", { to: "taraskievica" })
|
|
16
|
+
* // => { text: "сьнег", direction: "n2t", engine_version: "0.1.0",
|
|
17
|
+
* // data_version: "1.3.0",
|
|
18
|
+
* // changes: [{ start: 0, end: 5, from: "снег", to: "сьнег",
|
|
19
|
+
* // stage: "rule", rule: "palat.assim",
|
|
20
|
+
* // citation: "Збор 2005, §29", context: null }],
|
|
21
|
+
* // unresolved: [] }
|
|
22
|
+
*
|
|
23
|
+
* Pass `unresolved: true` to populate `unresolved` (see the `unresolved` field on the
|
|
24
|
+
* response, and docs/API.md — it costs a full extra scan, off by default).
|
|
25
|
+
*/
|
|
26
|
+
declare function convert(text: string, options: ConvertOptions, opts?: {
|
|
27
|
+
unresolved?: boolean;
|
|
28
|
+
}): ReturnType<typeof conversionResultToDict>;
|
|
29
|
+
/** A per-word trace of how `convert` reached its answer: the intermediate forms a
|
|
30
|
+
* word passed through, alongside the same decision `convert` already made. */
|
|
31
|
+
declare function explain(text: string, options: ConvertOptions): ReturnType<Converter["explain"]>;
|
|
32
|
+
|
|
33
|
+
export { type ConvertOptions, Converter, DATA_VERSION, ENGINE_VERSION, Orthography, convert, explain };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { C as Converter } from './pipeline-CQ31DzWB.js';
|
|
2
|
+
import { O as Orthography, c as conversionResultToDict } from './types-wqNurkip.js';
|
|
3
|
+
export { C as Conversion, a as ConversionResult, M as Method, T as TokenExplanation } from './types-wqNurkip.js';
|
|
4
|
+
|
|
5
|
+
declare const ENGINE_VERSION = "0.1.0";
|
|
6
|
+
|
|
7
|
+
declare const DATA_VERSION: string;
|
|
8
|
+
interface ConvertOptions {
|
|
9
|
+
from?: Orthography;
|
|
10
|
+
to: Orthography;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Convert `text` between the two orthographies.
|
|
14
|
+
*
|
|
15
|
+
* convert("снег", { to: "taraskievica" })
|
|
16
|
+
* // => { text: "сьнег", direction: "n2t", engine_version: "0.1.0",
|
|
17
|
+
* // data_version: "1.3.0",
|
|
18
|
+
* // changes: [{ start: 0, end: 5, from: "снег", to: "сьнег",
|
|
19
|
+
* // stage: "rule", rule: "palat.assim",
|
|
20
|
+
* // citation: "Збор 2005, §29", context: null }],
|
|
21
|
+
* // unresolved: [] }
|
|
22
|
+
*
|
|
23
|
+
* Pass `unresolved: true` to populate `unresolved` (see the `unresolved` field on the
|
|
24
|
+
* response, and docs/API.md — it costs a full extra scan, off by default).
|
|
25
|
+
*/
|
|
26
|
+
declare function convert(text: string, options: ConvertOptions, opts?: {
|
|
27
|
+
unresolved?: boolean;
|
|
28
|
+
}): ReturnType<typeof conversionResultToDict>;
|
|
29
|
+
/** A per-word trace of how `convert` reached its answer: the intermediate forms a
|
|
30
|
+
* word passed through, alongside the same decision `convert` already made. */
|
|
31
|
+
declare function explain(text: string, options: ConvertOptions): ReturnType<Converter["explain"]>;
|
|
32
|
+
|
|
33
|
+
export { type ConvertOptions, Converter, DATA_VERSION, ENGINE_VERSION, Orthography, convert, explain };
|