kaabalah
Version:
The de-facto library for any esoteric calculations and tooling
1 lines • 108 kB
Source Map (JSON)
{"version":3,"sources":["../src/gematria/data.ts","../src/gematria/index.ts"],"names":["GematriaNumbersWithMeaning","step","isEnding","latinLetterId","mapping","useWhenEndingValue"],"mappings":";;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWO,IAAM,0BAA0B,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE;AA+EnE,IAAM,WAAW,oBAAI,IAAY;AAAA,EACtC,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAAA,EACd,cAAc;AAChB,CAAC;AA8BM,IAAK,6BAAL,kBAAKA,gCAAL;AACL,EAAAA,wDAAA,SAAM,KAAN;AACA,EAAAA,wDAAA,SAAM,KAAN;AACA,EAAAA,wDAAA,WAAQ,KAAR;AACA,EAAAA,wDAAA,UAAO,KAAP;AACA,EAAAA,wDAAA,UAAO,KAAP;AACA,EAAAA,wDAAA,SAAM,KAAN;AACA,EAAAA,wDAAA,WAAQ,KAAR;AACA,EAAAA,wDAAA,WAAQ,KAAR;AACA,EAAAA,wDAAA,UAAO,KAAP;AACA,EAAAA,wDAAA,YAAS,MAAT;AACA,EAAAA,wDAAA,eAAY,MAAZ;AACA,EAAAA,wDAAA,iBAAc,MAAd;AACA,EAAAA,wDAAA,eAAY,MAAZ;AAbU,SAAAA;AAAA,GAAA;AAgBL,IAAM,gCAA4E;AAAA,EACvF,CAAC,WAA8B,GAAG;AAAA,EAClC,CAAC,WAA8B,GAAG;AAAA,EAClC,CAAC,aAAgC,GAAG;AAAA,EACpC,CAAC,YAA+B,GAAG;AAAA,EACnC,CAAC,YAA+B,GAAG;AAAA,EACnC,CAAC,WAA8B,GAAG;AAAA,EAClC,CAAC,aAAgC,GAAG;AAAA,EACpC,CAAC,aAAgC,GAAG;A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AAG;AAAA,IAC9D,GAAG,iBAAiB;AAAA,EACtB;AAEA,QAAM,kBAAkB,6BAA6B,WAAW,SAAS;AACzE,QAAM,sBAAsB;AAAA,IAC1B,WAAW;AAAA,EACb;AACA,QAAM,qBAAqB;AAAA,IACzB,mBAAmB,gBAAgB,KAAK,IAAI,mBAAmB,oBAAoB,KAAK;AAAA,EAC1F;AAEA,QAAM,wBAAwB,SAAS,UACnC,yBAAyB,iBAAiB,WAAW,sBAAsB,IAC3E;AAEJ,SAAO;AAAA,IACL,QAAQ;AAAA,MACN,aAAa,WAAW;AAAA,MACxB,gBAAgB,gBAAgB;AAAA,MAChC,YAAY,gBAAgB;AAAA,IAC9B;AAAA,IACA,YAAY;AAAA,MACV,aAAa,WAAW;AAAA,MACxB,gBAAgB,oBAAoB;AAAA,MACpC,YAAY,oBAAoB;AAAA,IAClC;AAAA,IACA,WAAW;AAAA,MACT,aAAa,WAAW,YAAY,WAAW;AAAA,MAC/C,gBAAgB,mBAAmB;AAAA,MACnC,YAAY,mBAAmB;AAAA,IACjC;AAAA,IACA,iBAAiB,WAAW;AAAA,IAC5B;AAAA,IACA,mBAAmB,SAAS,cAAc,oBAAoB;AAAA,EAChE;AACF","sourcesContent":["import { LATIN_LETTERS } from \"../core/constants\";\nimport { LetterTypes, NodeId } from \"../core/types\";\n\n// =============================================================================\n// Reverse Gematria Types\n// =============================================================================\n\n/**\n * Extended master numbers used in gematria reduction.\n * Includes traditional master numbers (11, 22, 33, 44) and extended ones (55, 66, 77, 88, 99).\n */\nexport const EXTENDED_MASTER_NUMBERS = [11, 22, 33, 44, 55, 66, 77, 88, 99] as const;\n\n/**\n * Information about how a number was reduced, including all reduction steps\n * and any master number found in the reduction path.\n */\nexport type ReductionInfo = {\n /** The original sum before any reduction */\n originalSum: number;\n /** All steps in the reduction path, e.g., [289, 19, 10, 1] */\n reductionSteps: number[];\n /** The final reduced value (1-9, or a master number if preserved) */\n finalValue: number;\n /** The master number found in the reduction path, if any */\n masterNumber?: number;\n};\n\nexport type ReverseGematriaOptions = {\n /** Target individuality (vowels sum) */\n targetVowels?: number;\n /** Target personality (consonants sum) */\n targetConsonants?: number;\n /** Target synthesis (total) */\n targetSynthesis?: number;\n /** Minimum letters (default: 1) */\n minLength?: number;\n /** Maximum letters (default: 8) */\n maxLength?: number;\n /** Maximum results (default: 100) */\n maxResults?: number;\n /** Include digraphs like PH, SH, etc. (default: true) */\n includeDigraphs?: boolean;\n /** Maximum times a single letter/digraph can repeat (e.g., 2 = \"AAB\" ok, \"AAAB\" filtered) */\n maxLetterRepeat?: number;\n /** Source text to derive results from */\n suggestionText?: string;\n /** How to use the suggestion text: \"subsequence\" preserves order, \"anagram\" allows reordering */\n suggestionMode?: \"subsequence\" | \"anagram\";\n /**\n * When true, target values match any step in the reduction path.\n * e.g., targetConsonants: 19 matches a result with consonantsSum: 289\n * because 289 reduces to [289, 19, 10, 1].\n * Default: true\n */\n matchReductionStep?: boolean;\n /**\n * Master numbers to preserve during reduction.\n * Default: [11, 22, 33, 44, 55, 66, 77, 88, 99]\n */\n masterNumbers?: number[];\n};\n\nexport type ReverseGematriaResult = {\n letters: string;\n letterDetails: LetterResult[];\n /** @deprecated Use vowels.originalSum instead */\n vowelsSum: number;\n /** @deprecated Use consonants.originalSum instead */\n consonantsSum: number;\n /** @deprecated Use synthesis.originalSum instead */\n synthesisSum: number;\n /** Reduction info for vowels (individuality) */\n vowels: ReductionInfo;\n /** Reduction info for consonants (personality) */\n consonants: ReductionInfo;\n /** Reduction info for synthesis (total) */\n synthesis: ReductionInfo;\n};\n\nexport type ReverseGematriaOutput = {\n results: ReverseGematriaResult[];\n hasMore: boolean;\n totalFound: number;\n};\n\n// =============================================================================\n// Existing Types\n// =============================================================================\n\nexport const DIGRAPHS = new Set<string>([\n LATIN_LETTERS.PH,\n LATIN_LETTERS.TS,\n LATIN_LETTERS.TZ,\n LATIN_LETTERS.SH,\n LATIN_LETTERS.CH,\n LATIN_LETTERS.TH,\n LATIN_LETTERS.KH,\n]);\n\nexport type LetterResult = {\n latinLetterId: NodeId<LetterTypes.LATIN_LETTER>;\n value: number;\n hebrewLetterId: NodeId<LetterTypes.HEBREW_LETTER>;\n hebrewCharacter: string;\n isVowel: boolean;\n}\n\nexport type WordResult = {\n letters: LetterResult[];\n vowelsSum: number;\n consonantsSum: number;\n includedGematriaValues: Set<number>;\n}\n\nexport type GematriaState = {\n includedLetters: LetterResult[];\n vowelsSum: number;\n consonantsSum: number;\n includedGematriaValues: Set<number>;\n}\n\nexport type LetterPercentages = {\n percentageOfVowels: number;\n percentageOfConsonants: number;\n letters: Record<string, number>;\n}\n\nexport enum GematriaNumbersWithMeaning {\n One = 1,\n Two = 2,\n Three = 3,\n Four = 4,\n Five = 5,\n Six = 6,\n Seven = 7,\n Eight = 8,\n Nine = 9,\n Eleven = 11,\n TwentyTwo = 22,\n ThirtyThree = 33,\n FortyFour = 44,\n}\n\nexport const INDIVIDUALITY_NUMBER_MEANINGS: Record<GematriaNumbersWithMeaning, string> = {\n [GematriaNumbersWithMeaning.One]: \"The leadership gained in past lives now brings the desire to continue striving for a higher consciousness. This person is independent when it comes to their beliefs. Their longing for free and independent thought remains their deepest inner drive. They should not allow this strong impulse to obstruct the achievement of practical goals in their present life. They will always be aware of their inner strength and find it difficult to accept a secondary position among their peers. If marriage or partnership is involved, they should explore their partner's inner aspirations in order to safeguard a successful relationship. If their individuality becomes too strong, it may manifest as authoritarianism and prove detrimental to their personal happiness. So firm is the intensity of their focus, and so strong the memory of past glory, that they are able to hold to their convictions even when this means breaking off important relationships. Their inner strength gives them something to rely on when situations are tense, and they can be an inspiration to others in difficult times. In terms of individuality, this number is one of the best indications. It denotes a person who is aware of their own importance, yet at the same time appreciates the rights and opinions of others. They ask for other people's point of view, using it as a way to refine their own opinions, which are formed on the basis of genuine knowledge.\",\n [GematriaNumbersWithMeaning.Two]: \"Strong desire for peace and harmony. They are attentive and diplomatic, adaptable and gentle. They are more of a follower than a leader. Discernment is a strong point of their character; for this reason, they make a good mediator or go-between, helping to bring peace to opposing forces. They avoid hurting other people's feelings, to the point of submitting to their wishes. As a result, they can appear shy and lacking in self-confidence. They should try to overcome indecision, because while they hesitate, others may step forward and claim what should have been theirs. They must encourage themselves to do what they feel is right and not let emotions block their purpose. Their sensitivity can be positive when used to attune to the balancing forces of the universe and to express truths that help everyone gain understanding. As an individuality number, this indicates a person full of tact and diplomacy, non-aggressive, who does not try to impose their opinions, and who listens to other people's ideas before expressing their own.\",\n [GematriaNumbersWithMeaning.Three]: \"Very conscientious about duty. They understand well the law of the trinity and know that inspiration and imagination bring the best results when used to help others. This can become their life philosophy. They should satisfy their urge to create and to expand activities related to their interests. They seek happiness and find it by making others happy. When someone is depressed, a visit from them brings hope and courage. They should expand their ideals by dedicating themselves to expressing good humor and optimism. They should commit to making their dreams come true, but not to the point where they become impractical. Love is important to them, both in giving and receiving – but they should try to keep a sense of reason in their romantic expansions. They will be happy and well-adjusted when they are bringing happiness to others. As an individuality number, this is one of the best, unless the Personality number is very adverse and prevents these qualities from being expressed. This person has highly developed philosophical and moral qualities and always tries to act for the greater good. Wherever they are, they will exert a strong positive influence, seeking to comfort and brighten the lives of those who are less fortunate. When the Personality is not favorable, the individual may become very selfish, vain, sensual, and concerned only with themselves. This happens especially when the Personality number is 8 or 9. The best combinations for the number 3 occur when the Personality number is 1 or 6, forming a harmonious and powerful nature.\",\n [GematriaNumbersWithMeaning.Four]: \"Highly organized, a quality that can bring them material success. The practical side permeates their whole being. Others could model themselves on their well-organized life plan. Their loyalty, balance, and reliability mean a great deal to those around them. People know where they stand with them in all things, and feel that any dealings with them will be handled honestly. They approach matters seriously, in business or in love, and for this reason they can make their dreams real in a planned and practical way. As an individuality number, this produces some of the strongest characters, individuals who rise in life through their genius and willpower. They are distinctly optimistic and face obstacles bravely. They do not fear venturing into the unknown. When the Personality allows a suitable individual expression, they can become a true benefactor of humanity. However, if the Personality is expressed by a weak or disharmonic number, they may become overly eccentric and incomprehensible, prone to mental imbalance and the danger of madness. Personality numbers 2 or 9 are the most harmful combinations for a 4 in Individuality.\",\n [GematriaNumbersWithMeaning.Five]: \"They claim the right to freedom and do not allow any restrictions on their ideals or way of thinking. Variety in self-expression is absolutely essential. They would feel inert and indifferent without the stimulus of change and new perspectives. Travel is one of the desires of their soul, as they see it as educational and as something that broadens their horizons. Pettiness is not tolerated. If they feel themselves slipping into routine, a journey, a new occupation, or a holiday can shift the vibrations for the better and open new paths for continued inner growth. This number is weak as an individuality number, promising little progress in life and favoring mainly the extension of experience, which will be as varied as possible. When the personal character is expressed by a powerful, steady number, the inner struggles and mobility of ideas and feelings do not show much on the surface, and the person can still progress in life and attain a position that matches their talent. However, if the Personality is also weak, the person will drift through life like a butterfly.\",\n [GematriaNumbersWithMeaning.Six]: \"Strongly responsive to beauty, harmony, and peace. Affectionate, kind, and loyal to those they love. Their mission could be to teach others how to maintain peace and harmony in their lives and to spread the ideal of moral conduct. They work hard to keep domestic harmony through their ideal way of life. Of all the love vibrations of the numbers, this one is the most likely to create a suffocating love, so deep is their desire to live for their immediate family. They must learn to allow family members to express their own desires in life, even when they do not agree with their choices. As an individuality number, it indicates a deeply benevolent and kind nature, but its outer expression depends greatly on the Personality and the Synthesis. This number is strongly limited by prejudices and mistaken ideas, which can expand into malice and even vandalism if it is linked with 8 or 9 in the Personality or in the Synthesis. It easily tends toward extremes, depending on how it combines with the other numbers in the chart.\",\n [GematriaNumbersWithMeaning.Seven]: \"Calm and reserved, a good thinker, analyst, and mediator. They need a peaceful environment and become irritated in noisy surroundings. Refined, sensitive, withdrawn, and often psychic. They may live alone and remain single, or become celibate and join one of humanity's higher mystical orders. Their true nature is to be calm, to develop depth of character, and thus to benefit humanity through philosophy. As an individuality number, it is very variable in its effects, everything depending on the individual's moral development. When supported by harmonious numbers in the Personality and in the Synthesis, its influence is among the best and most beneficial for humanity, giving rise to great philanthropy.\",\n [GematriaNumbersWithMeaning.Eight]: \"Ambition is their key word. They believe in achievement and do not let any obstacle stop them from reaching their goals. Their number is not an easy one to handle, but their efforts will be rewarded. They are someone who undertakes great works in order to stand out from the crowd and reach the heights. They have the ability to organize large groups and enterprises successfully. Psychology would help them understand the masses they may work with. Others expect more from them than from the average person, and for this reason they must trust their inner Self to guide them in remaining in a position of leadership. This is the number of high-performance athletes. As an individuality number, this gives one of the strongest and most enterprising characters. The person has great willpower, concentration, and the ability to carry their undertakings through. When they are morally developed, these qualities place them on the highest levels of life.\",\n [GematriaNumbersWithMeaning.Nine]: \"Intuition is strongly active in their life. They are sensitive, imaginative, and able to think in abstract terms. Though they may sometimes seem vague, they are extremely impressionable, compassionate, and generous. They need both to give and to receive love. They are gentle and merciful, with an expansive consciousness dedicated to the upliftment of humanity. This could be the number of a master or adept from a previous life. The influence of this number in individuality is very strong and can produce remarkable results, both for good and for ill. In a morally developed person, the magnetic power becomes very great, and they possess notable healing abilities. When the Personality is weak, the individual becomes a victim of misfortune and adverse events, through lack of control over their passions.\",\n [GematriaNumbersWithMeaning.Eleven]: \"Has been on the spiritual path for a long time, probably for more than one incarnation. Through spiritual evolution they have learned many of the mysteries of life and death. They have courage, talent, and leadership ability; they are understanding, wise, intuitive and, often, clairvoyant, with extremely sensitive extrasensory perception and strong spiritual inclinations. They also possess the courage to face many changes and unexpected upheavals.\",\n [GematriaNumbersWithMeaning.TwentyTwo]: \"With the power of 22, you carry the urge to continue the tangible achievements of past lives. You seek material accomplishment. You are the master builder. Your ambitious soul leaves the world a tangibly better place for your having been here; for this reason, you need to maintain mental balance while expressing your ideals in a practical way.\",\n [GematriaNumbersWithMeaning.ThirtyThree]: \"You are willing to make sacrifices for humanity. You have a clear vision of future world conditions and feel ready to help in every way you can to bring peace to all humankind. At times, the vibrations of your Life Lesson (birth date) may be at odds with the longings of your soul. In spite of this, you will strive to practice generosity and to consider other people's point of view. This circumstance may temporarily force you into a background position, but it does not destroy your hope of one day holding a place from which you can promote your ideals. You are always ready to help others.\",\n [GematriaNumbersWithMeaning.FortyFour]: \"Universal concepts are part of your consciousness; they now express themselves as inner impulses to bring about great advances in world culture. Whether by uniting the practical with the global sphere, a governmental chamber or even the UN may offer you the opportunity to promote these ideals among all peoples. You are willing to take on great responsibilities. Your inner Self recognizes that you are an adept; now the challenge is how to manifest this to the outer world. You trust that your soul will guide you toward fields where your great ideals can be advanced. You have an innate ability to solve everyday problems and can work with others to help them organize their lives.\",\n}\n\nexport const PERSONALITY_NUMBER_MEANINGS: Record<GematriaNumbersWithMeaning, string> = {\n [GematriaNumbersWithMeaning.One]: \"You present to the world an image of someone independent and capable, the executive type. Others see you as a unique individual, set apart from the ordinary crowd – perhaps something of a loner in some respects, but definitely different. They expect you to be able to take control of any situation and to manage an organization or a club effectively. People look to you to get the job done, because you appear to be the leader, the pioneer, the person with ideas who always knows where to go and what to do. Creating the right image comes first in your mind, and you rely on the strength of your personality, as if it were your identity card, to gain entry into social circles. You may sometimes appear too aggressive or domineering. In that case, the selfish need to assert your individuality is fulfilled at the expense of the free expression of those around you. As a number 1 person, you like to dress to be at the forefront of fashion. You enjoy exclusive styles. On the negative side, you may even dress in an eccentric way, or in a way that goes beyond the boundaries of good taste. As an indicator of Personality, this number is rarely favorable, as it almost always denotes selfishness, disregard for the opinion of others, a tendency to interfere in other people's lives, and a desire to dominate those around. A person under this influence likes to give their opinion without being asked, insists that their method is always the best, and does not respect the feelings of others. Only when it is in perfect harmony with the Individuality number does the number 1 become favorable.\",\n [GematriaNumbersWithMeaning.Two]: \"You appear calm and modest and seem to need a peaceful environment in which to live. You are demanding about details; neatness and cleanliness are a must. Instead of making a grand entrance, you prefer to stay in the background, working behind the scenes or in cooperation with others. You are attractive and popular with the opposite sex. This is partly due to your desire for companionship and harmony, which makes you tolerant of others. You seem incomplete in yourself. You may appear restless and dissatisfied with circumstances because of the constant weighing and balancing you do in every situation. You may have difficulty making decisions, as both sides often seem very clear to you. At times, you can show bad temper and use sharp words. You dress with care and discretion, preferring a balanced and pleasant appearance. You should choose clothes of a lighter style, reflecting your more passive and artistic nature. As a Personality number, 2 is not very favorable, producing a nervous, irritable, flattering, and scheming disposition. It makes countless promises, but almost never carries them out, always looking for excuses.\",\n [GematriaNumbersWithMeaning.Three]: \"Extremely charming, pleasant, and sociable. You act in an attractive way, seeking pleasure and joy. Loyalty and honesty strengthen your idealistic nature. Communication is a vital part of your personality, and you find it very easy to express yourself. As an avid conversationalist, you shine in any group. You are like the sun, lighting up the world of those you meet, spreading brightness and optimism wherever you go. Others naturally gather around your warmth. Your outgoing personality can become so large that it leads to your downfall, through prejudice and envy. In such cases, your gift of speech tends to degenerate into gossip, exaggeration, and frivolity. If you are a woman, you may be beautiful and have an attractive body. You will enjoy personal adornments – jewelry, necklaces, makeup – and have an artistic flair for choosing clothes. On the negative side, you may become carelessly dressed, neglecting both style and the way you look after your wardrobe. As a Personality number, 3 gives pleasant manners, a sensitive and compassionate nature, public appeal, and popularity. When Individuality is occupied by a disharmonic number, 3 in Personality produces a demanding, critical person, inclined to arguments, vain, and impatient. Your selfishness will be greatly increased by the presence of 8 or 9 in Individuality, producing someone who will only be useful to themselves.\",\n [GematriaNumbersWithMeaning.Four]: \"You show the world a determined and well-directed attitude. You appear conservative, self-disciplined, and practical. You dream of an orderly existence through which your skill in both physical and mental application will produce conventional and even useful results. You are the honest, hard-working type, who respects values and effort. You like the land, nature, home, and your country. You may become so disciplined that you have no time for leisure, which can eventually isolate you from others. Extremely careful and frugal, you tend to become defensive and stingy. Roughness and bad temper can drive you even further away from social contact. Or, as a reaction in the opposite direction, you may appear completely undisciplined and lazy. Good sportswear appeals to you because it is durable and needs little care. You choose your work clothes carefully, insist on good quality, and often have them made to measure. You like to appear clean and well-groomed at all times. You are conservative both in the way you dress and in your behavior. Except in cases where Individuality is expressed by a strong and powerful number, such as 1, 3, 4, or 8, this number is harmful on the Personality level. In fact, when Individuality is not strong enough to hold the reins of the fiery vibrational impulses of 4 in Personality, the result is a very impulsive, violent, hasty, and inconstant disposition that can never bring good results in life. Numbers 2 and 5 in Individuality are too weak to contain the vibrations of 4, and 9 is too violent, increasing its effect.\",\n [GematriaNumbersWithMeaning.Five]: \"You like to talk, and you are intelligent, witty, and sharp; for this reason, you will have wide interaction with groups of people. You have strong magnetism with the opposite sex and powerful sexual appetites. Because change and freedom are so essential to you, your relationships may shift quickly. You enjoy constant activity, variety, and change, and you believe that change is progress. You are able to do anything, when and how you wish, in order to perform according to your abilities. You have a natural curiosity and are willing to take risks. Others see you as a born salesperson, publicist, or promoter. Overindulgence in social interaction and sensual pleasures can lead you to excess in food, drink, drugs/medication, or sexual contacts. You may become fickle, restless, and uncertain. You like to be among the 10 best-dressed people, or at least to be ahead of the curve in style, wearing brightly colored clothes with good taste. As a Personality number, 5 is quite favorable, as long as the other factors are not antagonistic. Personality expressed by the number 5 finds it easy to manifest its inner qualities and to adapt readily to the demands of the outer environment.\",\n [GematriaNumbersWithMeaning.Six]: \"You radiate a protective vibration and a strong sense of responsibility for others. People are drawn to you for advice, learning, and healing, because you have a maternal or paternal presence that conveys comfort and safety. Home seems very important to you. You are optimistic, cheerful, and reliable. You appear to love beauty and everything connected with the arts. You have a good sense of balance and symmetry; for this reason, you can see all the pieces individually and at the same time as part of a whole. Your social conscience drives you to seek truth and justice. You may become a slave to others, especially in the home, and your sense of social responsibility may degenerate into social irresponsibility or interference in other people's affairs. You are careful in choosing your clothes and show artistic talent, preserving color harmony in whatever combinations you choose. You prefer comfortable styles rather than exclusive fashions, although you are meticulous in choosing soft, harmonious fabrics. On the negative side, you may be a somewhat careless homemaker and neglectful in the way you dress. Personality number 6 gives a tendency toward luxury, great care with clothing, and concern with physical beauty. It inclines you strongly toward the opposite sex and sensual pleasures. You may often be dominated by the intensity of your passions and may have numerous unions in life.\",\n [GematriaNumbersWithMeaning.Seven]: \"You appear to be a loner who enjoys moments of solitude, completely removed from the crowd. Nature and regular walks in the countryside, or time spent at the beach, provide the right environment for your philosophical temperament. An air of mystery and secrecy surrounds you. You seem to be a philosopher, a mystic, a poet, a thinker, a scientist, and a researcher, whose temporary withdrawals from the world are occasions for further meditation. A sharp power of observation helps you mentally analyze any situation. You show an aristocratic air, personal dignity, and refined behavior, seeming to have an unshakable faith in the future. When you get involved in materialism, you find only disappointment, lose your composure, and become frustrated, sad, and withdrawn. Confusion, fear, and pessimism then take hold of you. You are neat, well put-together, and inclined to wear pastel or dark colors. You avoid light or bright colors and dress with good taste. When you become discontented, you grow indifferent to your appearance, neglecting so-called trivial details of color, harmony, and combination. Personality number 7 gives very attractive qualities and the ability to win much sympathy in social life. However, if moral development is not great, there will be a tendency to abuse these qualities.\",\n [GematriaNumbersWithMeaning.Eight]: \"You have a dynamic personality, and people recognize your authority because you appear affluent and self-controlled. There is an executive air about you, capable of directing large enterprises and business affairs. You radiate power and personal strength that commands recognition wherever you go. You seem authoritative, impartial, and ethical, and you appear to possess an inexhaustible source of strength and physical endurance. Your personal power may lead you into situations where you are tempted to abuse that power. Materialism can override your higher judgment, and you may become negative and cruel when provoked. A successful appearance is your standard; hence your insistence on well-made, high-quality clothing. You would never choose cheap items. Taken to extremes, you become flamboyant, wasteful, or a show-off, seeking to impress others through brightly colored clothes and the display of large amounts of money. A woman with this vibration may flaunt excessive jewelry and wear expensive clothes, even if bought on sale. As a Personality number, 8 is not very favorable, as it gives a coarse, imperious, and demanding disposition. Under this influence, a person easily becomes disliked because of their manner and appearance.\",\n [GematriaNumbersWithMeaning.Nine]: \"You seem to possess a broad range of understanding, as well as a personal magnetism that is universal in scope. Your cordial, friendly, and charming manner pleases everyone you come into contact with, and the selflessness that emanates from you makes you loved by many. You show tolerance and compassion for others, which allows you to forgive and forget easily. You are generous toward those in need and show genuine humanitarian concern. Others see you as romantic and emotional, an idealist who believes that the progress of the world justifies personal sacrifice. Sentimentality can take hold of you, and then you become susceptible to every sad story you hear. At that point you scatter your energies and emotions, and as a consequence you may become bitter. You dress in an artistic way, with a touch of drama, while still wanting your clothes to be well-fitted and comfortable. You tend to be good-looking, both in face and figure; and if you take care of your skin and maintain good posture, you may look young for a long time. As a Personality number, 9 has more or less the same meanin