-
Notifications
You must be signed in to change notification settings - Fork 2
/
ca.ts
53 lines (46 loc) · 1.33 KB
/
ca.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import {
ALL_AFFILIATIONS,
ALL_CONFIGURATIONS,
ALL_ESSENCES,
ALL_EXTENSIONS,
ALL_PERSPECTIVES,
affiliationToIthkuil,
caToIthkuil,
configurationToIthkuil,
extensionToIthkuil,
fillInDefaultCAValues,
perspectiveAndEssenceToIthkuil,
} from "@zsnout/ithkuil/generate/index.js"
const allCAs = ALL_AFFILIATIONS.flatMap((affiliation) =>
ALL_CONFIGURATIONS.flatMap((configuration) =>
ALL_EXTENSIONS.flatMap((extension) =>
ALL_PERSPECTIVES.flatMap((perspective) =>
ALL_ESSENCES.map((essence) => ({
affiliation,
configuration,
extension,
perspective,
essence,
})),
),
),
),
)
const unallomorphed = allCAs.map((ca) => {
const configuration = configurationToIthkuil(ca.configuration)
const extension = extensionToIthkuil(ca.extension, ca.configuration == "UPX")
const affiliation = affiliationToIthkuil(
ca.affiliation,
configuration == "" &&
extension == "" &&
ca.perspective == "M" &&
ca.essence == "NRM",
)
const perspectiveAndEssence = perspectiveAndEssenceToIthkuil(
ca.perspective,
ca.essence,
affiliation == "" && configuration == "" && extension == "",
!!(affiliation + configuration + extension).match(/[kpt]$/),
)
const core = affiliation + configuration + extension + perspectiveAndEssence
})