How yousefdg005/qwqw works
AI Legal Workspace is a Streamlit application for bilingual legal-text alignment and terminology extraction. Users can create or upload aligned English–Arabic material, review alignment, generate TMX, and analyze aligned units with a selected AI model; results can be exported as a glossary or translation cards. The README documents these capabilities, while the excerpts show TMX generation, model-driven extraction, result filtering, and a dictionary request. Most runtime behavior lives in app.py, so internal stages are represented as components of that monolith; unsampled implementation details are not inferred.
Main entry points: app.py Streamlit workspace
Components 16
Alignment Studio
- Document alignment input
app.py - Interactive alignment editor
app.py - TMX generation
app.py - TMX upload and parsing
app.py
Term Extraction
- Model selection
app.py - Legal prompt processing
app.py - AI term extraction
app.py - Term filtering
app.py
Glossary and Exports
- Structured term results
app.py - TMX download
app.py - Excel glossary export
app.py - PDF term cards
app.py
External Integrations
- OpenRouter models
- Legal dictionary service
Other components
- Legal workspace user
- Streamlit workspace
app.py
Connections 17
- Legal workspace user → Streamlit workspace: uses
README.md - Streamlit workspace → Document alignment input: provides
README.md - Document alignment input → Interactive alignment editor: aligns text
README.md - Interactive alignment editor → TMX generation: approves pairs
app.py - TMX generation → TMX download: downloads TMX
app.py - Streamlit workspace → TMX upload and parsing: accepts upload
README.md - TMX upload and parsing → Model selection: supplies aligned units
README.md - Streamlit workspace → Model selection: selects model
app.py - Model selection → OpenRouter models: chooses provider model
README.md - Streamlit workspace → Legal prompt processing: prepares analysis
README.md - Legal prompt processing → AI term extraction: guides extraction
README.md - AI term extraction → OpenRouter models: requests analysis
README.md - AI term extraction → Term filtering: filters candidates
app.py - Term filtering → Structured term results: records terms
app.py - Structured term results → Excel glossary export: exports glossary
README.md - Structured term results → PDF term cards: exports cards
README.md - Streamlit workspace → Legal dictionary service: sends dictionary entry
app.py