Reference specification and zero-dependency ES module implementation for the open 5-axis behavioral scoring model and privacy-first URL fragment sharing format used by MentalAgeHub.
Scope Disclaimer: This model is built strictly for entertainment and personal self-reflection. It is not a clinical diagnostic, medical evaluation, or IQ test. For historical background on Alfred Binet's 1905 psychometric concept vs. modern recreational quizzes, read Mental Age vs. Chronological Age.
Most online "mental age" quizzes operate as black boxes behind email capture gates or database-backed share links. MentalAgeHub keeps every step inspectable and 100% browser-local:
-
Open Deterministic Formula: Every scenario choice maps to an age anchor (
17–61) across 5 behavioral axes:- Emotional Steadiness
- Playfulness & Curiosity
- Practical Foresight
- Social Tempo
- Risk Calibration
$$\text{Mental Age} = \text{clamp}\big(\text{round}(36 + (\text{mean} - 36) \times 1.12),; 15,; 68\big)$$
-
Zero-Server
#r=Fragment Sharing: Shareable result links pack the computed profile straight into the URL fragment (e.g.,https://mentalagehub.com/#r=36.28.12.73-53-64-81-42). Because browsers never transmit#fragmentsin HTTP requests (RFC 3986), two friends can compare profiles side-by-side in the Mental Age Calculator with zero backend storage.
#r=<mentalAge>.<realAgeOr0>.<mode>.<steadiness>-<playfulness>-<foresight>-<social>-<risk>
| Segment | Range | Example | Meaning |
|---|---|---|---|
mentalAge |
15..68 |
36 |
Computed mental age |
realAgeOr0 |
0..120 |
28 |
Optional chronological age (0 = omitted) |
mode |
12 | 24 |
12 |
Quick Mode (12Q) or Full Mode (24Q) |
axes |
5 ints (0..100) |
73-53-64-81-42 |
Normalized 5-axis breakdown |
Requires Node.js 18+ (zero external dependencies):
npm testimport { computeMentalAge, classifyArchetype } from "./src/scoring.mjs"; import { encodeResultHash, decodeResultHash } from "./src/hash-codec.mjs"; const mentalAge = computeMentalAge([35, 42, 29, 44, 38, 36, 40, 31, 39, 34, 41, 35]); const archetype = classifyArchetype(mentalAge); const hash = encodeResultHash({ mentalAge, realAge: 28, mode: 12, axes: [73, 53, 64, 81, 42], }); console.log({ mentalAge, archetype, hash }); console.log(decodeResultHash(`https://mentalagehub.com/${hash}`));
- Flagship Quiz: Mental Age Test
- Sliders & Friend Compare: Mental Age Calculator
- Companion Quizzes: Emotional Age Test · Soul Age Test
MIT