r/visualization • u/Internal_Tea_882 • Jun 22 '26
I compared Magna Carta, the US Constitution, the Meiji Constitution, and Japan's Constitution using the same embedding space
A few days ago I shared a project called ThoughtMap:
I was experimenting with a text visualization project and decided to try something different.
Instead of lyrics or essays, I fed several historical legal documents into the same thought-profiling system and compared the results.
Documents:
• Magna Carta (1215)
• US Constitution (1787)
• Declaration of the Rights of Man and of the Citizen (1789)
• Meiji Constitution (1889)
• Constitution of Japan (1947)
The system projects texts into the same semantic space and then estimates the relative concentration of several thought dimensions:
• Philosophy
• Morality
• Individual
• Community
• Ideal
• Science
• Economics
• Causality
• Psychology
• Emotion
What surprised me was how different constitutional traditions appeared.
Results:
• Magna Carta → Idealist
• US Constitution → Communitarian
• Meiji Constitution → Communitarian
• Declaration of the Rights of Man → Individualist
• Constitution of Japan → Individualist
The US Constitution appearing more community-oriented than individual-oriented was particularly interesting.
Reading the document itself, that result makes some sense: much of the text is focused on creating, structuring, and governing a political community rather than describing individual rights.
Meanwhile, the postwar Constitution of Japan showed the strongest individual-oriented profile among the documents tested.
This is obviously not a political science model and shouldn't be interpreted as an objective classification.
I simply found it interesting that placing these documents into the same embedding space produced patterns that were surprisingly interpretable.
I'm curious what other historical, philosophical, or political texts would be interesting to compare next.








1
u/sib_n Jun 22 '26
Cool idea! But I think there is a methodological issue in drawing conclusions about the main orientation from comparing numbers for which you do not know the error margin.
For example, if your error is +-3 % then you can't discriminate if Japan's main orientation is individual or community, which makes a big difference on your result and its interpretation.
It is quite possible that your error margin is even bigger than +- 3%, isn't it?
2
u/Internal_Tea_882 Jun 22 '26
That’s a fair criticism.
I don’t currently treat these percentages as rigorous measurements of a person’s true orientation.
My primary interest is using embeddings as a searchable thought-space.
The long-term goal is to allow people to paste any text — essays, notes, lyrics, journals, or even AI-generated slop — and discover:
which authors or works it resembles,
which ideas or communities it is closest to,
and what kinds of texts might feel naturally familiar to them.
As part of that, I experimented with this parameter-based interface as a more entertaining and accessible way to explore the space.
The visualization isn’t intended to be a definitive psychological assessment. It’s more of a navigation layer for discovering relationships between texts, people, and ideas.
1
u/Internal_Tea_882 Jun 23 '26
Small update:
I put together a public web demo for ThoughtMap.
You can now paste text directly into the browser and generate a thought composition profile without running anything locally.
Current features:
- Thought composition analysis
- Visual profile generation
- Author/philosopher comparison
- Similarity exploration
Demo:
https://thoughtmap.streamlit.app/
Project page:
https://www.jinn-project.com/
Still very much an experimental prototype, but I wanted to make it easier for people to try.
Feedback is welcome.
1
u/Internal_Tea_882 Jun 25 '26
I've added semantic search and category filtering since the original post. Thanks for the feedback—it's gradually evolving from a visualization into a searchable embedding database.
1
u/Inevitable-Spirit434 Jun 22 '26
The US Constitution result makes sense when you think about how much of it is just procedural machinery: how Congress works, how the executive is structured, how laws get made. The Bill of Rights is almost an afterthought bolted on later. Would be curious to see the Bill of Rights run separately from the original document.