explaingit

type666firewall/resh

Analysis updated 2026-05-18

2PythonAudience · researcherComplexity · 4/5LicenseSetup · hard

TLDR

A Python tool that reads philosophical or theoretical texts and scores how well their arguments hold up structurally, detecting fallacies, hidden premises, and circular reasoning.

Mindmap

mindmap
  root((Resh))
    What it does
      Argument analysis
      Fallacy detection
      Structural score
    Two layers
      Deterministic NLP
      Optional LLM critique
    How it works
      Linguistic annotation
      Natural language inference
      Munchhausen trilemma check
    Use cases
      Philosophy paper review
      Fact-checking arguments
      Academic peer review
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Analyze a philosophy paper to find hidden assumptions and logical fallacies with a reproducible score.

USE CASE 2

Run the deterministic layer on a theoretical text to get a structural soundness score without any AI API calls.

USE CASE 3

Use the inductive layer to diagnose whether a text's chain of justification falls into regress, circularity, or dogmatic stopping.

What is it built with?

PythonStanzaPyTorchNLP

How does it compare?

type666firewall/resh0-bingwu-0/live-interpreter0xkaz/llm-governance-dashboard
Stars222
LanguagePythonPythonPython
Setup difficultyhardmoderatehard
Complexity4/52/54/5
Audienceresearchergeneralops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Full analysis requires Python 3.11+, PyTorch, Stanza language models (download separately), and an LLM API key for the inductive layer.

MIT license: use, modify, and distribute freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Resh is a Python tool for analyzing philosophical and theoretical texts to evaluate how well their arguments actually hold up. It does not judge whether a text is true or false. Instead it looks for structural weaknesses: hidden premises, logical fallacies, circular reasoning, dogmatic assumptions, and rhetorical bias. The result is a reproducible numeric score called epsilon-resh, which measures the structural soundness of an argument on a scale from 0 to 1. The tool operates in two independent layers. The first is fully deterministic: it uses linguistic annotation, natural language inference, and sentence embeddings to compute a score from ten components, covering things like fallacy density, implicit premises, and logical validity. Because it uses no AI language model, the same text always produces the same score. The second layer is optional and uses a language model to apply a "critical arsenal" of deeper philosophical questions, including diagnosing which horn of the Munchausen trilemma the text falls into (infinite regress, circular reasoning, or dogmatic stopping point). The two layers are always kept separate in the report, and if they disagree, the disagreement is shown rather than hidden. The tool can analyze a single passage or a full document. For long documents it splits the text into chunks, processes them in order with a configurable call budget, and aggregates the results at the end. All AI calls are logged explicitly, failures are recorded as discarded contributions with error messages, not silently ignored. Installation requires Python 3.11 or higher and cloning the repository. A minimal install skips the machine learning stack and falls back to simpler methods, which is useful for trying the command-line interface without committing to a full GPU setup. The full stack adds Stanza (a linguistic annotation library), PyTorch, and an embedding model. The inductive layer needs an API key for a language model configured in config.py. The primary language of the README is Italian, but an English translation is included. The project supports both Italian and English input texts. The license is MIT, which means you can use, modify, and distribute it freely.

Copy-paste prompts

Prompt 1
I have a PDF of a philosophy paper I want to analyze with Resh. Walk me through converting it to Markdown and running resh documento on it to get a full structural soundness report.
Prompt 2
Explain what the epsilon-resh score means. If a text scores 0.55, what does that say about its argumentation, and which components are most likely dragging it down?
Prompt 3
How do I configure Resh to use Claude as the LLM backend for the inductive layer? What goes in config.py?
Prompt 4
Run Resh on this paragraph and tell me which fallacies it detects and what their severity and confidence scores are: [paste paragraph here]

Frequently asked questions

What is resh?

A Python tool that reads philosophical or theoretical texts and scores how well their arguments hold up structurally, detecting fallacies, hidden premises, and circular reasoning.

What language is resh written in?

Mainly Python. The stack also includes Python, Stanza, PyTorch.

What license does resh use?

MIT license: use, modify, and distribute freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is resh to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is resh for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub type666firewall on gitmyhub

Verify against the repo before relying on details.