GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jaxxchen003/mental-age-scoring-spec: Open 5-axis behavioral mental age scoring model and stateless #r= URL-hash codec used by MentalAgeHub

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
test
test
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

Mental Age Scoring Spec & Stateless #r= Hash Codec

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.


Why Open & Stateless?

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:

  1. 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)$$
  2. 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 #fragments in HTTP requests (RFC 3986), two friends can compare profiles side-by-side in the Mental Age Calculator with zero backend storage.

#r= Fragment Grammar

#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

Usage & Verification

Requires Node.js 18+ (zero external dependencies):

npm test
import { 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}`));

Live Interactive Tools

  • Flagship Quiz: Mental Age Test
  • Sliders & Friend Compare: Mental Age Calculator
  • Companion Quizzes: Emotional Age Test · Soul Age Test

License

MIT

About

Open 5-axis behavioral mental age scoring model and stateless #r= URL-hash codec used by MentalAgeHub

mentalagehub.com/

Topics

javascriptmental-ageprivacy-firsturl-hashzero-dependency

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.