How spaceofclaudemalot/origin works
TextOrigin AI is a local Chrome extension for reviewing stylistic signals associated with AI-generated text. The popup analyzes selected text through the extension’s background workflow; users can open the resulting text in a built-in editor, where live analysis marks signals and invisible characters. The editor also supports document management and Word/PDF export. Analysis proceeds through text segmentation, family-specific detectors, and score aggregation. Several UI and background modules were not sampled, so those connections are shown only where documented or marked unverified.
Main entry points: service.ts Detector assembly · detector.ts Detector service · EditorApp.tsx Editor workspace · useLiveAnalysis.ts Live analysis
Components 25
User entry points
- Popup
extension/src/popup/index.tsx - Background worker
extension/src/background/index.ts
Analysis pipeline
- Text segmentation
extension/src/analysis/segment.ts - Detector assembly
extension/src/analysis/service.ts - Detector service
extension/src/services/detector.ts - Vocabulary signals
extension/src/detectors/lexical.ts - Connector signals
extension/src/detectors/connectors.ts - Phrasing patterns
extension/src/detectors/stereotypes.ts - Sentence rhythm
extension/src/detectors/rhythm.ts - Paragraph regularity
extension/src/detectors/paragraphs.ts - Invisible characters
extension/src/detectors/invisibles.ts - Score aggregation
extension/src/analysis/scoring.ts - Signal thresholds
extension/src/analysis/thresholds.ts
Editor and documents
- Editor startup
extension/src/editor/main.tsx - Editor workspace
extension/src/editor/EditorApp.tsx - Live analysis
extension/src/editor/useLiveAnalysis.ts - Text markers
extension/src/editor/extensions/AiMarkers.ts - Invisible marks
extension/src/editor/extensions/InvisibleMarks.ts - Document storage
extension/src/storage/documents.ts - Document backup
extension/src/storage/backup.ts - Document export
extension/src/export/toDocx.ts
Shared capabilities
- English and French
extension/src/i18n/core.ts - Translation dictionaries
extension/src/i18n/fr.ts - Feedback action
extension/src/ui/feedback.ts
Other components
- User
Connections 24
- User → Popup: analyzes selection
README.md - Popup → Background worker: requests analysis
extension/src/popup/index.tsx - Background worker → Detector service: dispatches analysis
- Detector service → Text segmentation: segments text
extension/src/services/detector.ts - Detector assembly → Detector service: registers detectors
extension/src/analysis/service.ts - Detector assembly → Vocabulary signals: registers
extension/src/analysis/service.ts - Detector assembly → Connector signals: registers
extension/src/analysis/service.ts - Detector assembly → Phrasing patterns: registers
extension/src/analysis/service.ts - Detector assembly → Sentence rhythm: registers
extension/src/analysis/service.ts - Detector assembly → Paragraph regularity: registers
extension/src/analysis/service.ts - Detector service → Invisible characters: checks characters
extension/src/services/detector.ts - Detector service → Score aggregation: aggregates signals
extension/src/services/detector.ts - Score aggregation → Signal thresholds: uses thresholds
extension/src/analysis/scoring.ts - Editor startup → Editor workspace: renders
extension/src/editor/main.tsx - Editor workspace → Live analysis: starts live review
- Live analysis → Detector assembly: creates service
extension/src/editor/useLiveAnalysis.ts - Live analysis → Text markers: dispatches detections
extension/src/editor/useLiveAnalysis.ts - Live analysis → Invisible marks: dispatches findings
extension/src/editor/useLiveAnalysis.ts - Editor workspace → Document storage: manages documents
- Document storage → Document backup: clears backup
extension/src/storage/documents.ts - Editor workspace → Document export: exports document
- Editor startup → English and French: initializes language
extension/src/editor/main.tsx - English and French → Translation dictionaries: loads dictionaries
extension/src/i18n/core.ts - User → Feedback action: opens feedback
README.md