@polyglot-bundles/tl-lang 1.1.2

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
+ * Tagalog Character Types
3
+ *
4
+ * Type definitions for Tagalog characters (Latin script).
5
+ * Tagalog has 20 letters: 5 vowels, 15 consonants.
6
+ */
7
+ /**
8
+ * Base character info
9
+ */
10
+ type TagalogCharacterBaseInfo = {
11
+ char: string;
12
+ id: string;
13
+ display?: string;
14
+ audio?: string;
15
+ notes?: string;
16
+ };
17
+ /**
18
+ * Tagalog Vowels
19
+ */
20
+ export type TagalogVowelsInfo = {
21
+ charType: "vowel";
22
+ ipa: string;
23
+ name: string;
24
+ length?: "short" | "long";
25
+ } & TagalogCharacterBaseInfo;
26
+ /**
27
+ * Tagalog Consonants
28
+ */
29
+ export type TagalogConsonantsInfo = {
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
+ } & TagalogCharacterBaseInfo;
37
+ export type TagalogCharacter = TagalogVowelsInfo | TagalogConsonantsInfo;
38
+ export declare function isVowel(character: TagalogCharacter): character is TagalogVowelsInfo;
39
+ export declare function isConsonant(character: TagalogCharacter): character is TagalogConsonantsInfo;
40
+ export declare const tagalogVowels: TagalogVowelsInfo[];
41
+ export declare const tagalogConsonants: TagalogConsonantsInfo[];
42
+ export declare const tagalogAllCharacters: (TagalogVowelsInfo | TagalogConsonantsInfo)[];
43
+ export {};
@@ -0,0 +1,68 @@
1
+ function c(a) {
2
+ return a.charType === "vowel";
3
+ }
4
+ function e(a) {
5
+ return a.charType === "consonant";
6
+ }
7
+ const i = [
8
+ // Short vowels
9
+ { char: "a", id: "a", charType: "vowel", ipa: "a", name: "A", length: "short" },
10
+ { char: "e", id: "e", charType: "vowel", ipa: "ɛ", name: "E", length: "short" },
11
+ { char: "i", id: "i", charType: "vowel", ipa: "i", name: "I", length: "short" },
12
+ { char: "o", id: "o", charType: "vowel", ipa: "ɔ", name: "O", length: "short" },
13
+ { char: "u", id: "u", charType: "vowel", ipa: "u", name: "U", length: "short" },
14
+ // Long vowels (diphthongs)
15
+ { char: "á", id: "a_long", charType: "vowel", ipa: "aː", name: "A (long)", length: "long" },
16
+ { char: "é", id: "e_long", charType: "vowel", ipa: "eː", name: "E (long)", length: "long" },
17
+ { char: "í", id: "i_long", charType: "vowel", ipa: "iː", name: "I (long)", length: "long" },
18
+ { char: "ó", id: "o_long", charType: "vowel", ipa: "oː", name: "O (long)", length: "long" },
19
+ { char: "ú", id: "u_long", charType: "vowel", ipa: "uː", name: "U (long)", length: "long" },
20
+ // Diphthongs
21
+ { char: "ai", id: "ai", charType: "vowel", ipa: "ai", name: "AI", length: "short" },
22
+ { char: "au", id: "au", charType: "vowel", ipa: "au", name: "AU", length: "short" },
23
+ { char: "ei", id: "ei", charType: "vowel", ipa: "ɛi", name: "EI", length: "short" },
24
+ { char: "oi", id: "oi", charType: "vowel", ipa: "ɔi", name: "OI", length: "short" },
25
+ { char: "ui", id: "ui", charType: "vowel", ipa: "ui", name: "UI", length: "short" }
26
+ ], n = [
27
+ // Bilabial consonants
28
+ { char: "b", id: "b", charType: "consonant", ipa: "b", name: "B", voicing: "voiced", articulation: "stop", place: "labial" },
29
+ { char: "p", id: "p", charType: "consonant", ipa: "p", name: "P", voicing: "voiceless", articulation: "stop", place: "labial" },
30
+ { char: "m", id: "m", charType: "consonant", ipa: "m", name: "M", voicing: "nasal", articulation: "nasal", place: "labial" },
31
+ // Labiodental consonants
32
+ { char: "f", id: "f_foreign", charType: "consonant", ipa: "f", name: "F (foreign)", voicing: "voiceless", articulation: "fricative", place: "labial" },
33
+ { char: "v", id: "v_foreign", charType: "consonant", ipa: "v", name: "V (foreign)", voicing: "voiced", articulation: "fricative", place: "labial" },
34
+ { char: "w", id: "w", charType: "consonant", ipa: "w", name: "W", voicing: "voiced", articulation: "approximant", place: "labial" },
35
+ // Dental/Alveolar consonants
36
+ { char: "t", id: "t", charType: "consonant", ipa: "t", name: "T", voicing: "voiceless", articulation: "stop", place: "dental" },
37
+ { char: "d", id: "d", charType: "consonant", ipa: "d", name: "D", voicing: "voiced", articulation: "stop", place: "dental" },
38
+ { char: "s", id: "s", charType: "consonant", ipa: "s", name: "S", voicing: "voiceless", articulation: "fricative", place: "alveolar" },
39
+ { char: "z", id: "z_foreign", charType: "consonant", ipa: "z", name: "Z (foreign)", voicing: "voiced", articulation: "fricative", place: "alveolar" },
40
+ { char: "n", id: "n", charType: "consonant", ipa: "n", name: "N", voicing: "nasal", articulation: "nasal", place: "alveolar" },
41
+ { char: "l", id: "l", charType: "consonant", ipa: "l", name: "L", voicing: "lateral", articulation: "lateral", place: "alveolar" },
42
+ { char: "r", id: "r", charType: "consonant", ipa: "r", name: "R", voicing: "trill", articulation: "trill", place: "alveolar" },
43
+ // Palatal consonants
44
+ { char: "y", id: "y", charType: "consonant", ipa: "j", name: "Y", voicing: "voiced", articulation: "approximant", place: "palatal" },
45
+ { char: "j", id: "j_foreign", charType: "consonant", ipa: "dʒ", name: "J (foreign)", voicing: "voiced", articulation: "affricate", place: "palatal" },
46
+ // Velar consonants
47
+ { char: "k", id: "k", charType: "consonant", ipa: "k", name: "K", voicing: "voiceless", articulation: "stop", place: "velar" },
48
+ { char: "g", id: "g", charType: "consonant", ipa: "ɡ", name: "G", voicing: "voiced", articulation: "stop", place: "velar" },
49
+ { char: "ng", id: "ng", charType: "consonant", ipa: "ŋ", name: "NG", voicing: "nasal", articulation: "nasal", place: "velar" },
50
+ { char: "h", id: "h", charType: "consonant", ipa: "h", name: "H", voicing: "voiceless", articulation: "fricative", place: "glottal" },
51
+ // Other consonants
52
+ { char: "q", id: "q_foreign", charType: "consonant", ipa: "k", name: "Q (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
53
+ { char: "c", id: "c_foreign", charType: "consonant", ipa: "k", name: "C (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
54
+ { char: "x", id: "x_foreign", charType: "consonant", ipa: "ks", name: "X (foreign)", voicing: "voiceless", articulation: "stop", place: "velar" },
55
+ { char: "b", id: "b_fricative", charType: "consonant", ipa: "β", name: "B (fricative)", voicing: "voiced", articulation: "fricative", place: "labial" },
56
+ { char: "d", id: "d_fricative", charType: "consonant", ipa: "ð", name: "D (fricative)", voicing: "voiced", articulation: "fricative", place: "dental" },
57
+ { char: "g", id: "g_fricative", charType: "consonant", ipa: "ɣ", name: "G (fricative)", voicing: "voiced", articulation: "fricative", place: "velar" }
58
+ ], o = [
59
+ ...i,
60
+ ...n
61
+ ];
62
+ export {
63
+ e as isConsonant,
64
+ c as isVowel,
65
+ o as tagalogAllCharacters,
66
+ n as tagalogConsonants,
67
+ i as tagalogVowels
68
+ };
@@ -0,0 +1 @@
1
+ export { tagalogVowels, tagalogConsonants, tagalogAllCharacters, type TagalogVowelsInfo, type TagalogConsonantsInfo, type TagalogCharacter, isVowel, isConsonant, } from './characters.js';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { isConsonant as l, isVowel as s, tagalogAllCharacters as t, tagalogConsonants as g, tagalogVowels as n } from "./characters.js";
2
+ export {
3
+ l as isConsonant,
4
+ s as isVowel,
5
+ t as tagalogAllCharacters,
6
+ g as tagalogConsonants,
7
+ n as tagalogVowels
8
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@polyglot-bundles/tl-lang",
3
+ "version": "1.1.2",
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/tl/lang"
35
+ }
36
+ }