kaabalah 0.1.0 → 1.0.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/README.md +12 -10
- package/dist/index.js +234 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +234 -63
- package/dist/index.mjs.map +1 -1
- package/dist/kaabalah/index.d.mts +4 -0
- package/dist/kaabalah/index.d.ts +4 -0
- package/dist/kaabalah/index.js +234 -63
- package/dist/kaabalah/index.js.map +1 -1
- package/dist/kaabalah/index.mjs +234 -63
- package/dist/kaabalah/index.mjs.map +1 -1
- package/package.json +11 -6
package/README.md
CHANGED
|
@@ -4,9 +4,10 @@ A comprehensive TypeScript library for numerology, astrology, kaabalah, and taro
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
+
- **Tree of Life**: A modular and performant tree of life system to help you build correspondences across different systems
|
|
7
8
|
- **Numerology**: Calculate life path numbers and other numerological values
|
|
8
9
|
- **Astrology**: Generate birth charts and planetary positions using Swiss Ephemeris
|
|
9
|
-
- **
|
|
10
|
+
- **Gematria**: Gematria (text numerology) calculations
|
|
10
11
|
- **Tarot**: Card meanings, spreads, and interpretations
|
|
11
12
|
|
|
12
13
|
## Installation
|
|
@@ -17,18 +18,19 @@ npm install kaabalah
|
|
|
17
18
|
|
|
18
19
|
## Usage Examples
|
|
19
20
|
|
|
20
|
-
###
|
|
21
|
+
### Core Library
|
|
21
22
|
|
|
22
23
|
```typescript
|
|
23
|
-
import
|
|
24
|
+
import { createTree } from 'kaabalah/core';
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const tree = createTree({
|
|
27
|
+
system: 'kaabalah',
|
|
28
|
+
parts: ['westernAstrology', 'tarot'],
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const gematriaResult = calculateGematria('kaabalah', tree);
|
|
28
32
|
|
|
29
|
-
|
|
30
|
-
const spread = Kaabalah.getRandomSpread(3);
|
|
31
|
-
console.log('Tarot Spread:', spread);
|
|
33
|
+
console.log(gematriaResult);
|
|
32
34
|
```
|
|
33
35
|
|
|
34
36
|
### Direct Module Imports (Tree-Shakable)
|
|
@@ -52,7 +54,7 @@ const birthChart = getBirthChart({
|
|
|
52
54
|
});
|
|
53
55
|
|
|
54
56
|
// Calculate Hebrew gematria
|
|
55
|
-
const gematriaValue = calculateGematria('
|
|
57
|
+
const gematriaValue = calculateGematria('kaabalah');
|
|
56
58
|
|
|
57
59
|
// Get a tarot spread
|
|
58
60
|
const spread = getRandomSpread(3, true);
|
package/dist/index.js
CHANGED
|
@@ -3487,7 +3487,21 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3487
3487
|
hebrewName: "Aleph",
|
|
3488
3488
|
hebrewCharacter: "\u05D0",
|
|
3489
3489
|
numericValue: 1,
|
|
3490
|
-
majorArcana: 1
|
|
3490
|
+
majorArcana: 1,
|
|
3491
|
+
astrologicalEnergy: "Air",
|
|
3492
|
+
letterType: "mother"
|
|
3493
|
+
}
|
|
3494
|
+
],
|
|
3495
|
+
[
|
|
3496
|
+
"\xC3",
|
|
3497
|
+
{
|
|
3498
|
+
letter: "\xC3",
|
|
3499
|
+
hebrewName: "Aleph",
|
|
3500
|
+
hebrewCharacter: "\u05D0",
|
|
3501
|
+
numericValue: 5,
|
|
3502
|
+
majorArcana: 1,
|
|
3503
|
+
astrologicalEnergy: "Air",
|
|
3504
|
+
letterType: "mother"
|
|
3491
3505
|
}
|
|
3492
3506
|
],
|
|
3493
3507
|
[
|
|
@@ -3497,7 +3511,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3497
3511
|
hebrewName: "Beth",
|
|
3498
3512
|
hebrewCharacter: "\u05D1",
|
|
3499
3513
|
numericValue: 2,
|
|
3500
|
-
majorArcana: 2
|
|
3514
|
+
majorArcana: 2,
|
|
3515
|
+
astrologicalEnergy: "Moon",
|
|
3516
|
+
letterType: "double"
|
|
3501
3517
|
}
|
|
3502
3518
|
],
|
|
3503
3519
|
[
|
|
@@ -3507,7 +3523,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3507
3523
|
hebrewName: "Gimel",
|
|
3508
3524
|
hebrewCharacter: "\u05D2",
|
|
3509
3525
|
numericValue: 3,
|
|
3510
|
-
majorArcana: 3
|
|
3526
|
+
majorArcana: 3,
|
|
3527
|
+
astrologicalEnergy: "Venus",
|
|
3528
|
+
letterType: "double"
|
|
3511
3529
|
}
|
|
3512
3530
|
],
|
|
3513
3531
|
[
|
|
@@ -3517,7 +3535,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3517
3535
|
hebrewName: "Daleth",
|
|
3518
3536
|
hebrewCharacter: "\u05D3",
|
|
3519
3537
|
numericValue: 4,
|
|
3520
|
-
majorArcana: 4
|
|
3538
|
+
majorArcana: 4,
|
|
3539
|
+
astrologicalEnergy: "Jupiter",
|
|
3540
|
+
letterType: "double"
|
|
3521
3541
|
}
|
|
3522
3542
|
],
|
|
3523
3543
|
[
|
|
@@ -3527,7 +3547,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3527
3547
|
hebrewName: "He",
|
|
3528
3548
|
hebrewCharacter: "\u05D4",
|
|
3529
3549
|
numericValue: 5,
|
|
3530
|
-
majorArcana: 5
|
|
3550
|
+
majorArcana: 5,
|
|
3551
|
+
astrologicalEnergy: "Aries",
|
|
3552
|
+
letterType: "simple"
|
|
3531
3553
|
}
|
|
3532
3554
|
],
|
|
3533
3555
|
[
|
|
@@ -3537,7 +3559,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3537
3559
|
hebrewName: "Vav",
|
|
3538
3560
|
hebrewCharacter: "\u05D5",
|
|
3539
3561
|
numericValue: 6,
|
|
3540
|
-
majorArcana: 6
|
|
3562
|
+
majorArcana: 6,
|
|
3563
|
+
astrologicalEnergy: "Taurus",
|
|
3564
|
+
letterType: "simple"
|
|
3541
3565
|
}
|
|
3542
3566
|
],
|
|
3543
3567
|
[
|
|
@@ -3547,7 +3571,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3547
3571
|
hebrewName: "Vav",
|
|
3548
3572
|
hebrewCharacter: "\u05D5",
|
|
3549
3573
|
numericValue: 6,
|
|
3550
|
-
majorArcana: 6
|
|
3574
|
+
majorArcana: 6,
|
|
3575
|
+
astrologicalEnergy: "Taurus",
|
|
3576
|
+
letterType: "simple"
|
|
3551
3577
|
}
|
|
3552
3578
|
],
|
|
3553
3579
|
[
|
|
@@ -3557,7 +3583,21 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3557
3583
|
hebrewName: "Vav",
|
|
3558
3584
|
hebrewCharacter: "\u05D5",
|
|
3559
3585
|
numericValue: 6,
|
|
3560
|
-
majorArcana: 6
|
|
3586
|
+
majorArcana: 6,
|
|
3587
|
+
astrologicalEnergy: "Taurus",
|
|
3588
|
+
letterType: "simple"
|
|
3589
|
+
}
|
|
3590
|
+
],
|
|
3591
|
+
[
|
|
3592
|
+
"O",
|
|
3593
|
+
{
|
|
3594
|
+
letter: "O",
|
|
3595
|
+
hebrewName: "Vav",
|
|
3596
|
+
hebrewCharacter: "\u05D5",
|
|
3597
|
+
numericValue: 6,
|
|
3598
|
+
majorArcana: 6,
|
|
3599
|
+
astrologicalEnergy: "Taurus",
|
|
3600
|
+
letterType: "simple"
|
|
3561
3601
|
}
|
|
3562
3602
|
],
|
|
3563
3603
|
[
|
|
@@ -3567,7 +3607,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3567
3607
|
hebrewName: "Zayin",
|
|
3568
3608
|
hebrewCharacter: "\u05D6",
|
|
3569
3609
|
numericValue: 7,
|
|
3570
|
-
majorArcana: 7
|
|
3610
|
+
majorArcana: 7,
|
|
3611
|
+
astrologicalEnergy: "Gemini",
|
|
3612
|
+
letterType: "simple"
|
|
3571
3613
|
}
|
|
3572
3614
|
],
|
|
3573
3615
|
[
|
|
@@ -3577,7 +3619,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3577
3619
|
hebrewName: "Cheth",
|
|
3578
3620
|
hebrewCharacter: "\u05D7",
|
|
3579
3621
|
numericValue: 8,
|
|
3580
|
-
majorArcana: 8
|
|
3622
|
+
majorArcana: 8,
|
|
3623
|
+
astrologicalEnergy: "Cancer",
|
|
3624
|
+
letterType: "simple"
|
|
3581
3625
|
}
|
|
3582
3626
|
],
|
|
3583
3627
|
[
|
|
@@ -3587,7 +3631,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3587
3631
|
hebrewName: "Teth",
|
|
3588
3632
|
hebrewCharacter: "\u05D8",
|
|
3589
3633
|
numericValue: 9,
|
|
3590
|
-
majorArcana: 9
|
|
3634
|
+
majorArcana: 9,
|
|
3635
|
+
astrologicalEnergy: "Leo",
|
|
3636
|
+
letterType: "simple"
|
|
3591
3637
|
}
|
|
3592
3638
|
],
|
|
3593
3639
|
[
|
|
@@ -3597,7 +3643,22 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3597
3643
|
hebrewName: "Tav",
|
|
3598
3644
|
hebrewCharacter: "\u05EA",
|
|
3599
3645
|
numericValue: 400,
|
|
3600
|
-
majorArcana: 22
|
|
3646
|
+
majorArcana: 22,
|
|
3647
|
+
astrologicalEnergy: "Sun",
|
|
3648
|
+
letterType: "double"
|
|
3649
|
+
}
|
|
3650
|
+
],
|
|
3651
|
+
[
|
|
3652
|
+
"TS",
|
|
3653
|
+
{
|
|
3654
|
+
letter: "Ts",
|
|
3655
|
+
hebrewName: "Tzaddi",
|
|
3656
|
+
hebrewCharacter: "\u05E6",
|
|
3657
|
+
numericValue: 90,
|
|
3658
|
+
numericValueWhenEnding: 900,
|
|
3659
|
+
majorArcana: 18,
|
|
3660
|
+
astrologicalEnergy: "Aquarius",
|
|
3661
|
+
letterType: "simple"
|
|
3601
3662
|
}
|
|
3602
3663
|
],
|
|
3603
3664
|
[
|
|
@@ -3608,7 +3669,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3608
3669
|
hebrewCharacter: "\u05E6",
|
|
3609
3670
|
numericValue: 90,
|
|
3610
3671
|
numericValueWhenEnding: 900,
|
|
3611
|
-
majorArcana: 18
|
|
3672
|
+
majorArcana: 18,
|
|
3673
|
+
astrologicalEnergy: "Aquarius",
|
|
3674
|
+
letterType: "simple"
|
|
3612
3675
|
}
|
|
3613
3676
|
],
|
|
3614
3677
|
[
|
|
@@ -3618,7 +3681,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3618
3681
|
hebrewName: "Yod",
|
|
3619
3682
|
hebrewCharacter: "\u05D9",
|
|
3620
3683
|
numericValue: 10,
|
|
3621
|
-
majorArcana: 10
|
|
3684
|
+
majorArcana: 10,
|
|
3685
|
+
astrologicalEnergy: "Virgo",
|
|
3686
|
+
letterType: "simple"
|
|
3622
3687
|
}
|
|
3623
3688
|
],
|
|
3624
3689
|
[
|
|
@@ -3628,7 +3693,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3628
3693
|
hebrewName: "Yod",
|
|
3629
3694
|
hebrewCharacter: "\u05D9",
|
|
3630
3695
|
numericValue: 10,
|
|
3631
|
-
majorArcana: 10
|
|
3696
|
+
majorArcana: 10,
|
|
3697
|
+
astrologicalEnergy: "Virgo",
|
|
3698
|
+
letterType: "simple"
|
|
3632
3699
|
}
|
|
3633
3700
|
],
|
|
3634
3701
|
[
|
|
@@ -3638,7 +3705,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3638
3705
|
hebrewName: "Yod",
|
|
3639
3706
|
hebrewCharacter: "\u05D9",
|
|
3640
3707
|
numericValue: 10,
|
|
3641
|
-
majorArcana: 10
|
|
3708
|
+
majorArcana: 10,
|
|
3709
|
+
astrologicalEnergy: "Virgo",
|
|
3710
|
+
letterType: "simple"
|
|
3642
3711
|
}
|
|
3643
3712
|
],
|
|
3644
3713
|
[
|
|
@@ -3649,7 +3718,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3649
3718
|
hebrewCharacter: "\u05DB",
|
|
3650
3719
|
numericValue: 20,
|
|
3651
3720
|
numericValueWhenEnding: 500,
|
|
3652
|
-
majorArcana: 11
|
|
3721
|
+
majorArcana: 11,
|
|
3722
|
+
astrologicalEnergy: "Mars",
|
|
3723
|
+
letterType: "double"
|
|
3653
3724
|
}
|
|
3654
3725
|
],
|
|
3655
3726
|
[
|
|
@@ -3659,7 +3730,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3659
3730
|
hebrewName: "Lamed",
|
|
3660
3731
|
hebrewCharacter: "\u05DC",
|
|
3661
3732
|
numericValue: 30,
|
|
3662
|
-
majorArcana: 12
|
|
3733
|
+
majorArcana: 12,
|
|
3734
|
+
astrologicalEnergy: "Libra",
|
|
3735
|
+
letterType: "simple"
|
|
3663
3736
|
}
|
|
3664
3737
|
],
|
|
3665
3738
|
[
|
|
@@ -3670,7 +3743,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3670
3743
|
hebrewCharacter: "\u05DE",
|
|
3671
3744
|
numericValue: 40,
|
|
3672
3745
|
numericValueWhenEnding: 600,
|
|
3673
|
-
majorArcana: 13
|
|
3746
|
+
majorArcana: 13,
|
|
3747
|
+
astrologicalEnergy: "Water",
|
|
3748
|
+
letterType: "mother"
|
|
3674
3749
|
}
|
|
3675
3750
|
],
|
|
3676
3751
|
[
|
|
@@ -3681,7 +3756,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3681
3756
|
hebrewCharacter: "\u05E0",
|
|
3682
3757
|
numericValue: 50,
|
|
3683
3758
|
numericValueWhenEnding: 700,
|
|
3684
|
-
majorArcana: 14
|
|
3759
|
+
majorArcana: 14,
|
|
3760
|
+
astrologicalEnergy: "Scorpio",
|
|
3761
|
+
letterType: "simple"
|
|
3685
3762
|
}
|
|
3686
3763
|
],
|
|
3687
3764
|
[
|
|
@@ -3691,17 +3768,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3691
3768
|
hebrewName: "Samekh",
|
|
3692
3769
|
hebrewCharacter: "\u05E1",
|
|
3693
3770
|
numericValue: 60,
|
|
3694
|
-
majorArcana: 15
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
[
|
|
3698
|
-
"SH",
|
|
3699
|
-
{
|
|
3700
|
-
letter: "Sh",
|
|
3701
|
-
hebrewName: "Shin",
|
|
3702
|
-
hebrewCharacter: "\u05E9",
|
|
3703
|
-
numericValue: 300,
|
|
3704
|
-
majorArcana: 21
|
|
3771
|
+
majorArcana: 15,
|
|
3772
|
+
astrologicalEnergy: "Sagittarius",
|
|
3773
|
+
letterType: "simple"
|
|
3705
3774
|
}
|
|
3706
3775
|
],
|
|
3707
3776
|
[
|
|
@@ -3711,18 +3780,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3711
3780
|
hebrewName: "Samekh",
|
|
3712
3781
|
hebrewCharacter: "\u05E1",
|
|
3713
3782
|
numericValue: 60,
|
|
3714
|
-
majorArcana: 15
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
[
|
|
3718
|
-
"O",
|
|
3719
|
-
{
|
|
3720
|
-
letter: "O",
|
|
3721
|
-
hebrewName: "Ayin",
|
|
3722
|
-
hebrewCharacter: "\u05E2",
|
|
3723
|
-
numericValue: 6,
|
|
3724
|
-
numericValueWhenStarting: 70,
|
|
3725
|
-
majorArcana: 16
|
|
3783
|
+
majorArcana: 15,
|
|
3784
|
+
astrologicalEnergy: "Sagittarius",
|
|
3785
|
+
letterType: "simple"
|
|
3726
3786
|
}
|
|
3727
3787
|
],
|
|
3728
3788
|
[
|
|
@@ -3733,7 +3793,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3733
3793
|
hebrewCharacter: "\u05E4",
|
|
3734
3794
|
numericValue: 80,
|
|
3735
3795
|
numericValueWhenEnding: 800,
|
|
3736
|
-
majorArcana: 17
|
|
3796
|
+
majorArcana: 17,
|
|
3797
|
+
astrologicalEnergy: "Mercury",
|
|
3798
|
+
letterType: "double"
|
|
3737
3799
|
}
|
|
3738
3800
|
],
|
|
3739
3801
|
[
|
|
@@ -3743,7 +3805,23 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3743
3805
|
hebrewName: "Pe",
|
|
3744
3806
|
hebrewCharacter: "\u05E4",
|
|
3745
3807
|
numericValue: 80,
|
|
3746
|
-
|
|
3808
|
+
numericValueWhenEnding: 800,
|
|
3809
|
+
majorArcana: 17,
|
|
3810
|
+
astrologicalEnergy: "Mercury",
|
|
3811
|
+
letterType: "double"
|
|
3812
|
+
}
|
|
3813
|
+
],
|
|
3814
|
+
[
|
|
3815
|
+
"F",
|
|
3816
|
+
{
|
|
3817
|
+
letter: "F",
|
|
3818
|
+
hebrewName: "Pe",
|
|
3819
|
+
hebrewCharacter: "\u05E4",
|
|
3820
|
+
numericValue: 80,
|
|
3821
|
+
numericValueWhenEnding: 800,
|
|
3822
|
+
majorArcana: 17,
|
|
3823
|
+
astrologicalEnergy: "Mercury",
|
|
3824
|
+
letterType: "double"
|
|
3747
3825
|
}
|
|
3748
3826
|
],
|
|
3749
3827
|
[
|
|
@@ -3753,7 +3831,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3753
3831
|
hebrewName: "Qoph",
|
|
3754
3832
|
hebrewCharacter: "\u05E7",
|
|
3755
3833
|
numericValue: 100,
|
|
3756
|
-
majorArcana: 19
|
|
3834
|
+
majorArcana: 19,
|
|
3835
|
+
astrologicalEnergy: "Pisces",
|
|
3836
|
+
letterType: "simple"
|
|
3757
3837
|
}
|
|
3758
3838
|
],
|
|
3759
3839
|
[
|
|
@@ -3763,7 +3843,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3763
3843
|
hebrewName: "Qoph",
|
|
3764
3844
|
hebrewCharacter: "\u05E7",
|
|
3765
3845
|
numericValue: 100,
|
|
3766
|
-
majorArcana: 19
|
|
3846
|
+
majorArcana: 19,
|
|
3847
|
+
astrologicalEnergy: "Pisces",
|
|
3848
|
+
letterType: "simple"
|
|
3767
3849
|
}
|
|
3768
3850
|
],
|
|
3769
3851
|
[
|
|
@@ -3773,7 +3855,9 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3773
3855
|
hebrewName: "Qoph",
|
|
3774
3856
|
hebrewCharacter: "\u05E7",
|
|
3775
3857
|
numericValue: 100,
|
|
3776
|
-
majorArcana: 19
|
|
3858
|
+
majorArcana: 19,
|
|
3859
|
+
astrologicalEnergy: "Pisces",
|
|
3860
|
+
letterType: "simple"
|
|
3777
3861
|
}
|
|
3778
3862
|
],
|
|
3779
3863
|
[
|
|
@@ -3783,7 +3867,33 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3783
3867
|
hebrewName: "Resh",
|
|
3784
3868
|
hebrewCharacter: "\u05E8",
|
|
3785
3869
|
numericValue: 200,
|
|
3786
|
-
majorArcana: 20
|
|
3870
|
+
majorArcana: 20,
|
|
3871
|
+
astrologicalEnergy: "Saturn",
|
|
3872
|
+
letterType: "double"
|
|
3873
|
+
}
|
|
3874
|
+
],
|
|
3875
|
+
[
|
|
3876
|
+
"SH",
|
|
3877
|
+
{
|
|
3878
|
+
letter: "Sh",
|
|
3879
|
+
hebrewName: "Shin",
|
|
3880
|
+
hebrewCharacter: "\u05E9",
|
|
3881
|
+
numericValue: 300,
|
|
3882
|
+
majorArcana: 21,
|
|
3883
|
+
astrologicalEnergy: "Fire",
|
|
3884
|
+
letterType: "mother"
|
|
3885
|
+
}
|
|
3886
|
+
],
|
|
3887
|
+
[
|
|
3888
|
+
"CH",
|
|
3889
|
+
{
|
|
3890
|
+
letter: "Ch",
|
|
3891
|
+
hebrewName: "Shin",
|
|
3892
|
+
hebrewCharacter: "\u05E9",
|
|
3893
|
+
numericValue: 300,
|
|
3894
|
+
majorArcana: 21,
|
|
3895
|
+
astrologicalEnergy: "Fire",
|
|
3896
|
+
letterType: "mother"
|
|
3787
3897
|
}
|
|
3788
3898
|
],
|
|
3789
3899
|
[
|
|
@@ -3793,10 +3903,50 @@ var hebrewLetterMapping = /* @__PURE__ */ new Map([
|
|
|
3793
3903
|
hebrewName: "Shin",
|
|
3794
3904
|
hebrewCharacter: "\u05E9",
|
|
3795
3905
|
numericValue: 300,
|
|
3796
|
-
majorArcana: 21
|
|
3906
|
+
majorArcana: 21,
|
|
3907
|
+
astrologicalEnergy: "Fire",
|
|
3908
|
+
letterType: "mother"
|
|
3797
3909
|
}
|
|
3798
3910
|
]
|
|
3799
3911
|
]);
|
|
3912
|
+
hebrewLetterMapping.set("O_START", {
|
|
3913
|
+
letter: "O",
|
|
3914
|
+
hebrewName: "Ayin",
|
|
3915
|
+
hebrewCharacter: "\u05E2",
|
|
3916
|
+
numericValue: 70,
|
|
3917
|
+
majorArcana: 16,
|
|
3918
|
+
astrologicalEnergy: "Capricorn",
|
|
3919
|
+
letterType: "simple"
|
|
3920
|
+
});
|
|
3921
|
+
var allGematriaNumbers = /* @__PURE__ */ new Map([
|
|
3922
|
+
[1, /* @__PURE__ */ new Set(["A"])],
|
|
3923
|
+
[2, /* @__PURE__ */ new Set(["B"])],
|
|
3924
|
+
[3, /* @__PURE__ */ new Set(["G"])],
|
|
3925
|
+
[4, /* @__PURE__ */ new Set(["D"])],
|
|
3926
|
+
[5, /* @__PURE__ */ new Set(["E", "\xC3"])],
|
|
3927
|
+
[6, /* @__PURE__ */ new Set(["V", "U", "W", "O"])],
|
|
3928
|
+
[7, /* @__PURE__ */ new Set(["Z"])],
|
|
3929
|
+
[8, /* @__PURE__ */ new Set(["H"])],
|
|
3930
|
+
[9, /* @__PURE__ */ new Set(["T"])],
|
|
3931
|
+
[10, /* @__PURE__ */ new Set(["I", "J", "Y"])],
|
|
3932
|
+
[20, /* @__PURE__ */ new Set(["C"])],
|
|
3933
|
+
[30, /* @__PURE__ */ new Set(["L"])],
|
|
3934
|
+
[40, /* @__PURE__ */ new Set(["M"])],
|
|
3935
|
+
[50, /* @__PURE__ */ new Set(["N"])],
|
|
3936
|
+
[60, /* @__PURE__ */ new Set(["S"])],
|
|
3937
|
+
[70, /* @__PURE__ */ new Set(["O"])],
|
|
3938
|
+
[80, /* @__PURE__ */ new Set(["P", "F", "Ph"])],
|
|
3939
|
+
[90, /* @__PURE__ */ new Set(["Ts", "Tz"])],
|
|
3940
|
+
[100, /* @__PURE__ */ new Set(["K", "Kh", "Q"])],
|
|
3941
|
+
[200, /* @__PURE__ */ new Set(["R"])],
|
|
3942
|
+
[300, /* @__PURE__ */ new Set(["Sh", "Ch", "X", "\xC7"])],
|
|
3943
|
+
[400, /* @__PURE__ */ new Set(["Th"])],
|
|
3944
|
+
[500, /* @__PURE__ */ new Set(["C"])],
|
|
3945
|
+
[600, /* @__PURE__ */ new Set(["M"])],
|
|
3946
|
+
[700, /* @__PURE__ */ new Set(["N"])],
|
|
3947
|
+
[800, /* @__PURE__ */ new Set(["P", "F", "Ph"])],
|
|
3948
|
+
[900, /* @__PURE__ */ new Set(["Ts", "Tz"])]
|
|
3949
|
+
]);
|
|
3800
3950
|
var reduceToSingleDigitWithSteps = (num) => {
|
|
3801
3951
|
const steps = [num];
|
|
3802
3952
|
let currentNum = num;
|
|
@@ -3810,34 +3960,44 @@ var reduceToSingleDigitWithSteps = (num) => {
|
|
|
3810
3960
|
};
|
|
3811
3961
|
};
|
|
3812
3962
|
var isVowel = (letter) => {
|
|
3813
|
-
return ["A", "E", "I", "O", "U", "Y"].includes(letter);
|
|
3963
|
+
return ["A", "\xC3", "E", "I", "O", "U", "Y", "W"].includes(letter);
|
|
3814
3964
|
};
|
|
3815
3965
|
var calculateGematria = (word) => {
|
|
3816
3966
|
const letters = word.toUpperCase().split("");
|
|
3817
3967
|
let vowelsSum = 0;
|
|
3818
3968
|
let consonantsSum = 0;
|
|
3969
|
+
const presentGematriaNumbers = /* @__PURE__ */ new Set();
|
|
3819
3970
|
for (let i = 0; i < letters.length; i++) {
|
|
3820
3971
|
const letter = letters[i];
|
|
3821
3972
|
const nextLetter = letters[i + 1] || "";
|
|
3822
|
-
|
|
3823
|
-
const isEnding = i > 0 && i === letters.length - 1;
|
|
3824
|
-
if (["P", "T", "K", "S"].includes(letter) && nextLetter) {
|
|
3973
|
+
if (["P", "T", "K", "S", "C"].includes(letter) && nextLetter) {
|
|
3825
3974
|
const combinedLetter = (letter + nextLetter).toUpperCase();
|
|
3826
|
-
|
|
3827
|
-
|
|
3975
|
+
const isEnding2 = i > 0 && i === letters.length - 2;
|
|
3976
|
+
const mapping2 = hebrewLetterMapping.get(combinedLetter);
|
|
3977
|
+
if (mapping2) {
|
|
3978
|
+
let value = mapping2.numericValue;
|
|
3979
|
+
if (isEnding2 && mapping2.numericValueWhenEnding !== void 0) {
|
|
3980
|
+
value = mapping2.numericValueWhenEnding;
|
|
3981
|
+
}
|
|
3982
|
+
presentGematriaNumbers.add(value);
|
|
3828
3983
|
consonantsSum += value;
|
|
3829
3984
|
i++;
|
|
3830
3985
|
continue;
|
|
3831
3986
|
}
|
|
3832
3987
|
}
|
|
3833
|
-
|
|
3988
|
+
let mapping;
|
|
3989
|
+
if (letter === "O" && i === 0 && hebrewLetterMapping.has("O_START")) {
|
|
3990
|
+
mapping = hebrewLetterMapping.get("O_START");
|
|
3991
|
+
} else {
|
|
3992
|
+
mapping = hebrewLetterMapping.get(letter);
|
|
3993
|
+
}
|
|
3994
|
+
const isEnding = i > 0 && i === letters.length - 1;
|
|
3834
3995
|
if (mapping) {
|
|
3835
3996
|
let value = mapping.numericValue;
|
|
3836
|
-
if (
|
|
3837
|
-
value = mapping.numericValueWhenStarting;
|
|
3838
|
-
} else if (isEnding && mapping.numericValueWhenEnding !== void 0) {
|
|
3997
|
+
if (isEnding && mapping.numericValueWhenEnding !== void 0) {
|
|
3839
3998
|
value = mapping.numericValueWhenEnding;
|
|
3840
3999
|
}
|
|
4000
|
+
presentGematriaNumbers.add(value);
|
|
3841
4001
|
if (isVowel(letter)) {
|
|
3842
4002
|
vowelsSum += value;
|
|
3843
4003
|
} else {
|
|
@@ -3848,8 +4008,18 @@ var calculateGematria = (word) => {
|
|
|
3848
4008
|
const vowelsReduction = reduceToSingleDigitWithSteps(vowelsSum);
|
|
3849
4009
|
const consonantsReduction = reduceToSingleDigitWithSteps(consonantsSum);
|
|
3850
4010
|
const synthesisReduction = reduceToSingleDigitWithSteps(
|
|
3851
|
-
|
|
4011
|
+
vowelsSum + consonantsSum
|
|
3852
4012
|
);
|
|
4013
|
+
const missingGematriaNumbers = [];
|
|
4014
|
+
for (const [num, lettersSet] of allGematriaNumbers.entries()) {
|
|
4015
|
+
if (!presentGematriaNumbers.has(num)) {
|
|
4016
|
+
missingGematriaNumbers.push({
|
|
4017
|
+
number: num,
|
|
4018
|
+
letters: Array.from(lettersSet)
|
|
4019
|
+
});
|
|
4020
|
+
}
|
|
4021
|
+
}
|
|
4022
|
+
missingGematriaNumbers.sort((a, b) => a.number - b.number);
|
|
3853
4023
|
return {
|
|
3854
4024
|
vowels: {
|
|
3855
4025
|
originalSum: vowelsSum,
|
|
@@ -3862,10 +4032,11 @@ var calculateGematria = (word) => {
|
|
|
3862
4032
|
finalValue: consonantsReduction.finalValue
|
|
3863
4033
|
},
|
|
3864
4034
|
synthesis: {
|
|
3865
|
-
originalSum:
|
|
4035
|
+
originalSum: vowelsSum + consonantsSum,
|
|
3866
4036
|
reductionSteps: synthesisReduction.steps,
|
|
3867
4037
|
finalValue: synthesisReduction.finalValue
|
|
3868
|
-
}
|
|
4038
|
+
},
|
|
4039
|
+
missingGematriaNumbers
|
|
3869
4040
|
};
|
|
3870
4041
|
};
|
|
3871
4042
|
|