@polyglot-bundles/it-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
+ * Italian Character Types
3
+ *
4
+ * Type definitions for Italian characters (Latin script).
5
+ * Italian has 21 letters: 5 vowels, 16 consonants.
6
+ */
7
+ /**
8
+ * Base character info
9
+ */
10
+ type ItalianCharacterBaseInfo = {
11
+ char: string;
12
+ id: string;
13
+ display?: string;
14
+ audio?: string;
15
+ notes?: string;
16
+ };
17
+ /**
18
+ * Italian Vowels
19
+ */
20
+ export type ItalianVowelsInfo = {
21
+ charType: "vowel";
22
+ ipa: string;
23
+ name: string;
24
+ length?: "short" | "long";
25
+ } & ItalianCharacterBaseInfo;
26
+ /**
27
+ * Italian Consonants
28
+ */
29
+ export type ItalianConsonantsInfo = {
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";
35
+ place: "velar" | "palatal" | "alveolar" | "dental" | "labial" | "glottal" | "alveolar" | "postalveolar";
36
+ } & ItalianCharacterBaseInfo;
37
+ export type ItalianCharacter = ItalianVowelsInfo | ItalianConsonantsInfo;
38
+ export declare function isVowel(character: ItalianCharacter): character is ItalianVowelsInfo;
39
+ export declare function isConsonant(character: ItalianCharacter): character is ItalianConsonantsInfo;
40
+ export declare const italianVowels: ItalianVowelsInfo[];
41
+ export declare const italianConsonants: ItalianConsonantsInfo[];
42
+ export declare const italianAllCharacters: (ItalianVowelsInfo | ItalianConsonantsInfo)[];
43
+ export {};
@@ -0,0 +1,65 @@
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
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
+ ], n = [
21
+ // Bilabial consonants
22
+ { char: "b", id: "b", charType: "consonant", ipa: "b", name: "B", voicing: "voiced", articulation: "stop", place: "labial" },
23
+ { char: "p", id: "p", charType: "consonant", ipa: "p", name: "P", voicing: "voiceless", articulation: "stop", place: "labial" },
24
+ { char: "m", id: "m", charType: "consonant", ipa: "m", name: "M", voicing: "nasal", articulation: "nasal", place: "labial" },
25
+ // Labiodental consonants
26
+ { char: "f", id: "f", charType: "consonant", ipa: "f", name: "F", voicing: "voiceless", articulation: "fricative", place: "labial" },
27
+ { char: "v", id: "v", charType: "consonant", ipa: "v", name: "V", voicing: "voiced", articulation: "fricative", place: "labial" },
28
+ // Dental/Alveolar consonants
29
+ { char: "t", id: "t", charType: "consonant", ipa: "t", name: "T", voicing: "voiceless", articulation: "stop", place: "dental" },
30
+ { char: "d", id: "d", charType: "consonant", ipa: "d", name: "D", voicing: "voiced", articulation: "stop", place: "dental" },
31
+ { char: "s", id: "s", charType: "consonant", ipa: "s", name: "S", voicing: "voiceless", articulation: "fricative", place: "alveolar" },
32
+ { char: "z", id: "z", charType: "consonant", ipa: "z", name: "Z", voicing: "voiced", articulation: "fricative", place: "alveolar" },
33
+ { char: "n", id: "n", charType: "consonant", ipa: "n", name: "N", voicing: "nasal", articulation: "nasal", place: "alveolar" },
34
+ { char: "l", id: "l", charType: "consonant", ipa: "l", name: "L", voicing: "lateral", articulation: "lateral", place: "alveolar" },
35
+ { char: "r", id: "r", charType: "consonant", ipa: "r", name: "R", voicing: "trill", articulation: "trill", place: "alveolar" },
36
+ // Palatal consonants
37
+ { char: "c", id: "c", charType: "consonant", ipa: "tʃ", name: "C", voicing: "voiceless", articulation: "affricate", place: "palatal" },
38
+ { char: "g", id: "g", charType: "consonant", ipa: "dʒ", name: "G", voicing: "voiced", articulation: "affricate", place: "palatal" },
39
+ { char: "j", id: "j", charType: "consonant", ipa: "j", name: "J", voicing: "voiced", articulation: "approximant", place: "palatal" },
40
+ { char: "gi", id: "gi", charType: "consonant", ipa: "dʒ", name: "GI", voicing: "voiced", articulation: "affricate", place: "palatal" },
41
+ { char: "ci", id: "ci", charType: "consonant", ipa: "tʃ", name: "CI", voicing: "voiceless", articulation: "affricate", place: "palatal" },
42
+ // Velar consonants
43
+ { char: "c", id: "c_velar", charType: "consonant", ipa: "k", name: "C (velar)", voicing: "voiceless", articulation: "stop", place: "velar" },
44
+ { char: "g", id: "g_velar", charType: "consonant", ipa: "ɡ", name: "G (velar)", voicing: "voiced", articulation: "stop", place: "velar" },
45
+ { char: "h", id: "h", charType: "consonant", ipa: "h", name: "H", voicing: "voiceless", articulation: "fricative", place: "glottal" },
46
+ { char: "qu", id: "qu", charType: "consonant", ipa: "kw", name: "QU", voicing: "voiceless", articulation: "stop", place: "velar" },
47
+ { char: "x", id: "x", charType: "consonant", ipa: "ks", name: "X", voicing: "voiceless", articulation: "stop", place: "velar" },
48
+ // Other
49
+ { char: "gn", id: "gn", charType: "consonant", ipa: "ɲ", name: "GN", voicing: "nasal", articulation: "nasal", place: "palatal" },
50
+ { char: "nn", id: "nn", charType: "consonant", ipa: "nː", name: "NN", voicing: "nasal", articulation: "nasal", place: "alveolar" },
51
+ { char: "ll", id: "ll", charType: "consonant", ipa: "lː", name: "LL", voicing: "lateral", articulation: "lateral", place: "alveolar" },
52
+ { char: "rr", id: "rr", charType: "consonant", ipa: "rː", name: "RR", voicing: "trill", articulation: "trill", place: "alveolar" },
53
+ { char: "ff", id: "ff", charType: "consonant", ipa: "fː", name: "FF", voicing: "voiceless", articulation: "fricative", place: "labial" },
54
+ { char: "bb", id: "bb", charType: "consonant", ipa: "bː", name: "BB", voicing: "voiced", articulation: "stop", place: "labial" }
55
+ ], o = [
56
+ ...i,
57
+ ...n
58
+ ];
59
+ export {
60
+ e as isConsonant,
61
+ c as isVowel,
62
+ o as italianAllCharacters,
63
+ n as italianConsonants,
64
+ i as italianVowels
65
+ };
@@ -0,0 +1 @@
1
+ export { italianVowels, italianConsonants, italianAllCharacters, type ItalianVowelsInfo, type ItalianConsonantsInfo, type ItalianCharacter, isVowel, isConsonant, } from './characters.js';
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ import { isConsonant as i, isVowel as o, italianAllCharacters as l, italianConsonants as s, italianVowels as t } from "./characters.js";
2
+ export {
3
+ i as isConsonant,
4
+ o as isVowel,
5
+ l as italianAllCharacters,
6
+ s as italianConsonants,
7
+ t as italianVowels
8
+ };
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@polyglot-bundles/it-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/it/lang"
35
+ }
36
+ }