Pet Name Compatibility Calculator
How well does your name match your pet's? Or are your two pets destined to be best friends? Type in two names and get a compatibility score from a FLAMES-style letter match combined with a deterministic hash. No randomness: the same pair of names always gets the same score, in either order.
How the Score Is Calculated
This is a playful spin on the classic FLAMES game you may remember from school, with a computer-science twist. The tool does three things:
- Letter matching (FLAMES-style). It strips both names down to letters, then crosses out the letters the two names share, one for one. Lots of shared letters means a friendship bonus; the count of leftover letters picks your "vibe" category, just like counting around F-L-A-M-E-S.
- Deterministic hashing (DJB2). The two names are sorted alphabetically and run through the DJB2 hash function, a classic string hash. Because the names are sorted first, "Luna + Alex" and "Alex + Luna" always produce exactly the same number.
- Combining. The hash supplies a base score (0–60) and the shared-letter ratio adds up to 40 bonus points, clamped to a final score between 5 and 100.
The result is 100% deterministic. There is no random number generator anywhere in this tool, so you can settle "rematch!" arguments instantly: the same two names will get the same score today, tomorrow, and forever.
Score Categories
| Score | Category |
|---|---|
| 90–100 | Soulmates |
| 75–89 | Best Friends |
| 60–74 | Playmates |
| 45–59 | Good Buddies |
| 30–44 | Slow Burn |
| 5–29 | Opposites Attract |
Tips for Having Fun With It
- Test name candidates. Picking a name for a new puppy or kitten? Run the shortlist against your own name and let the score break ties.
- Settle sibling rivalry. Switch to "Two Pets" mode and find out whether your dog and cat are Soulmates or merely tolerating each other (the score may confirm what you already suspect).
- Remember it is entertainment. Real compatibility comes from play, routine, and patience, not spelling. A low score has never stopped a dog from loving anyone.
Frequently Asked Questions
How is the compatibility score calculated?
It combines two deterministic steps: a FLAMES-style letter match that counts the letters both names share, and a DJB2 hash of the two names sorted alphabetically. The hash gives a base of 0 to 60 points and the shared letters add up to 40 bonus points, for a final score between 5 and 100.
Will I get the same score every time?
Yes. There is no randomness in this tool. Because the names are sorted before hashing, the order you type them in does not matter either: Luna + Alex scores exactly the same as Alex + Luna, every single time.
Does a low score mean my pet and I are not compatible?
Not at all. This is a game, not science. Real bonding comes from time together, play, training, and care. Treat a low score as a fun excuse for an extra play session, not a verdict.
Can I match two pets instead of a pet and a person?
Yes. Switch to "Two Pets" mode and enter both pets' names. The math is identical; only the wording of the result changes.
Is any of this data sent to a server?
No. The whole calculation runs in your browser using plain JavaScript. Nothing is stored, nothing is sent, and no sign-up is needed.