@polyglot-bundles/be-lang 1.1.1

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.
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Belarusian Character Types
3
+ *
4
+ * Type definitions for Belarusian characters (Cyrillic script).
5
+ * Belarusian has 33 letters: 10 vowels, 23 consonants, plus 2 special characters.
6
+ */
7
+ /**
8
+ * Base character info
9
+ */
10
+ type BelarusianCharacterBaseInfo = {
11
+ char: string;
12
+ id: string;
13
+ display?: string;
14
+ audio?: string;
15
+ notes?: string;
16
+ };
17
+ /**
18
+ * Belarusian Vowels
19
+ */
20
+ export type BelarusianVowelsInfo = {
21
+ charType: "vowel";
22
+ ipa: string;
23
+ name: string;
24
+ length?: "short" | "long";
25
+ } & BelarusianCharacterBaseInfo;
26
+ /**
27
+ * Belarusian Consonants
28
+ */
29
+ export type BelarusianConsonantsInfo = {
30
+ charType: "consonant";
31
+ ipa: string;
32
+ name: string;
33
+ articulation: "stop" | "fricative" | "nasal" | "approximant" | "lateral" | "trill" | "affricate";
34
+ voicing: "voiced" | "voiceless" | "nasal" | "lateral" | "approximant" | "trill" | "affricate" | "fricative";
35
+ place: "velar" | "palatal" | "alveolar" | "dental" | "labial" | "glottal" | "alveolar";
36
+ } & BelarusianCharacterBaseInfo;
37
+ export type BelarusianCharacter = BelarusianVowelsInfo | BelarusianConsonantsInfo;
38
+ export declare function isVowel(character: BelarusianCharacter): character is BelarusianVowelsInfo;
39
+ export declare function isConsonant(character: BelarusianCharacter): character is BelarusianConsonantsInfo;
40
+ export declare const belarusianVowels: BelarusianVowelsInfo[];
41
+ export declare const belarusianConsonants: BelarusianConsonantsInfo[];
42
+ export declare const belarusianAllCharacters: (BelarusianVowelsInfo | BelarusianConsonantsInfo)[];
43
+ export {};
@@ -0,0 +1,69 @@
1
+ function n(a) {
2
+ return a.charType === "vowel";
3
+ }
4
+ function e(a) {
5
+ return a.charType === "consonant";
6
+ }
7
+ const i = [
8
+ // Vowels
9
+ { char: "а", id: "a", charType: "vowel", ipa: "a", name: "А", length: "short" },
10
+ { char: "э", id: "e", charType: "vowel", ipa: "ɛ", name: "Э", length: "short" },
11
+ { char: "і", id: "i", charType: "vowel", ipa: "i", name: "І", length: "short" },
12
+ { char: "о", id: "o", charType: "vowel", ipa: "ɔ", name: "О", length: "short" },
13
+ { char: "у", id: "u", charType: "vowel", ipa: "u", name: "У", length: "short" },
14
+ { char: "ы", id: "y", charType: "vowel", ipa: "ɨ", name: "Ы", length: "short" },
15
+ { char: "ю", id: "yu", charType: "vowel", ipa: "ju", name: "Ю", length: "short" },
16
+ { char: "я", id: "ya", charType: "vowel", ipa: "ja", name: "Я", length: "short" },
17
+ // Short vowels
18
+ { char: "е", id: "e_short", charType: "vowel", ipa: "je", name: "Е", length: "short" },
19
+ { char: "ё", id: "yo", charType: "vowel", ipa: "jo", name: "Ё", length: "short" }
20
+ ], c = [
21
+ // Bilabial consonants
22
+ { char: "б", id: "be", charType: "consonant", ipa: "b", name: "Бэ", voicing: "voiced", articulation: "stop", place: "labial" },
23
+ { char: "п", id: "pe", charType: "consonant", ipa: "p", name: "Пэ", voicing: "voiceless", articulation: "stop", place: "labial" },
24
+ { char: "м", id: "me", charType: "consonant", ipa: "m", name: "Мэ", voicing: "nasal", articulation: "nasal", place: "labial" },
25
+ // Labiodental consonants
26
+ { char: "в", id: "ve", charType: "consonant", ipa: "v", name: "Вэ", voicing: "voiced", articulation: "fricative", place: "labial" },
27
+ { char: "ф", id: "fe", charType: "consonant", ipa: "f", name: "Фэ", voicing: "voiceless", articulation: "fricative", place: "labial" },
28
+ // Dental/Alveolar consonants
29
+ { char: "д", id: "de", charType: "consonant", ipa: "d", name: "Дэ", voicing: "voiced", articulation: "stop", place: "dental" },
30
+ { char: "т", id: "te", charType: "consonant", ipa: "t", name: "Тэ", voicing: "voiceless", articulation: "stop", place: "dental" },
31
+ { char: "з", id: "ze", charType: "consonant", ipa: "z", name: "Зэ", voicing: "voiced", articulation: "fricative", place: "alveolar" },
32
+ { char: "с", id: "se", charType: "consonant", ipa: "s", name: "Сэ", voicing: "voiceless", articulation: "fricative", place: "alveolar" },
33
+ { char: "н", id: "ne", charType: "consonant", ipa: "n", name: "Нэ", voicing: "nasal", articulation: "nasal", place: "alveolar" },
34
+ { char: "л", id: "le", charType: "consonant", ipa: "l", name: "Лэ", voicing: "lateral", articulation: "lateral", place: "alveolar" },
35
+ { char: "р", id: "re", charType: "consonant", ipa: "r", name: "Рэ", voicing: "trill", articulation: "trill", place: "alveolar" },
36
+ // Palatal consonants
37
+ { char: "ц", id: "tse", charType: "consonant", ipa: "ts", name: "Цэ", voicing: "voiceless", articulation: "affricate", place: "alveolar" },
38
+ { char: "ч", id: "che", charType: "consonant", ipa: "tʃ", name: "Чэ", voicing: "voiceless", articulation: "affricate", place: "palatal" },
39
+ { char: "ш", id: "sha", charType: "consonant", ipa: "ʃ", name: "Ша", voicing: "voiceless", articulation: "fricative", place: "palatal" },
40
+ { char: "ж", id: "zha", charType: "consonant", ipa: "ʒ", name: "Жа", voicing: "voiced", articulation: "fricative", place: "palatal" },
41
+ { char: "й", id: "y", charType: "consonant", ipa: "j", name: "Й", voicing: "voiced", articulation: "approximant", place: "palatal" },
42
+ { char: "сь", id: "s_soft", charType: "consonant", ipa: "sʲ", name: "Сь", voicing: "voiceless", articulation: "fricative", place: "palatal" },
43
+ { char: "зь", id: "z_soft", charType: "consonant", ipa: "zʲ", name: "Зь", voicing: "voiced", articulation: "fricative", place: "palatal" },
44
+ { char: "нь", id: "n_soft", charType: "consonant", ipa: "nʲ", name: "Нь", voicing: "nasal", articulation: "nasal", place: "palatal" },
45
+ { char: "ль", id: "l_soft", charType: "consonant", ipa: "lʲ", name: "Ль", voicing: "lateral", articulation: "lateral", place: "palatal" },
46
+ { char: "рь", id: "r_soft", charType: "consonant", ipa: "rʲ", name: "Рь", voicing: "trill", articulation: "trill", place: "palatal" },
47
+ // Velar consonants
48
+ { char: "к", id: "ka", charType: "consonant", ipa: "k", name: "Ка", voicing: "voiceless", articulation: "stop", place: "velar" },
49
+ { char: "г", id: "ha", charType: "consonant", ipa: "ɡ", name: "Га", voicing: "voiced", articulation: "stop", place: "velar" },
50
+ { char: "х", id: "kha", charType: "consonant", ipa: "x", name: "Ха", voicing: "voiceless", articulation: "fricative", place: "velar" },
51
+ // Glottal
52
+ { char: "ў", id: "u_short", charType: "consonant", ipa: "w", name: "Ў", voicing: "approximant", articulation: "approximant", place: "labial" },
53
+ // Other consonants
54
+ { char: "dź", id: "d_soft", charType: "consonant", ipa: "dʲ", name: "Дź", voicing: "voiced", articulation: "stop", place: "palatal" },
55
+ { char: "ć", id: "t_soft", charType: "consonant", ipa: "tʲ", name: "Ć", voicing: "voiceless", articulation: "stop", place: "palatal" },
56
+ { char: "ł", id: "l_foreign", charType: "consonant", ipa: "w", name: "Ł (foreign)", voicing: "lateral", articulation: "lateral", place: "labial" },
57
+ { char: "q", id: "q_foreign", charType: "consonant", ipa: "k", name: "Q (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
58
+ { char: "x", id: "x_foreign", charType: "consonant", ipa: "ks", name: "X (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" }
59
+ ], o = [
60
+ ...i,
61
+ ...c
62
+ ];
63
+ export {
64
+ o as belarusianAllCharacters,
65
+ c as belarusianConsonants,
66
+ i as belarusianVowels,
67
+ e as isConsonant,
68
+ n as isVowel
69
+ };
@@ -0,0 +1 @@
1
+ export { belarusianVowels, belarusianConsonants, belarusianAllCharacters, type BelarusianVowelsInfo, type BelarusianConsonantsInfo, type BelarusianCharacter, isVowel, isConsonant, } from './characters.js';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { belarusianAllCharacters as n, belarusianConsonants as o, belarusianVowels as e, isConsonant as l, isVowel as r } from "./characters.js";
2
+ export {
3
+ n as belarusianAllCharacters,
4
+ o as belarusianConsonants,
5
+ e as belarusianVowels,
6
+ l as isConsonant,
7
+ r as isVowel
8
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@polyglot-bundles/be-lang",
3
+ "version": "1.1.1",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "vite build",
9
+ "clean": "rm -rf dist"
10
+ },
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
15
+ }
16
+ },
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "dependencies": {
24
+ "@polyglot-bundles/content-shared": "workspace:*"
25
+ },
26
+ "devDependencies": {
27
+ "@polyglot-bundles/lang-tooling": "workspace:*",
28
+ "vite": "catalog:",
29
+ "vite-plugin-dts": "catalog:"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/fustilio/polyglot-bundles.git",
34
+ "directory": "packages/be/lang"
35
+ }
36
+ }