How idirlab/trustmap works
TrustMap lets users filter truthfulness-stance records by claim or topic and geography, then explore them on a U.S. map and in distribution and timeline charts. Its documented data stages are fact-check and tweet collection, geolocation, stance classification, and visualization. The sampled runtime shows CSV loading and map/chart rendering; the README describes RATSD, but its implementation is not present in the supplied tree. Some app-to-data wiring is therefore represented only at the documented level.
Main entry points: streamlit_app.py Streamlit dashboard · tweet_collection_v2.py Tweet search · data Tweet datasets · tsm_fn.py Dataset loading and filters
Components 15
Data collection
- Fact-check data
data - Keyword extraction
tweet_collection/tweet_collection_v2.py - Tweet search
tweet_collection/tweet_collection_v2.py - City tweet search
tweet_collection/tweet_collection_user_geo.py - Tweet datasets
data
Stance data
- Data preparation and analysis
adhoc_fn.py - RATSD classification
- Stance datasets
data - Dataset loading and filters
tsm_fn.py
Exploration interface
- Streamlit dashboard
streamlit_app.py - Interactive U.S. map
streamlit_app.py - Distribution and timeline
streamlit_app.py
Geographic reference
- State geography
constants.py
Other components
- Explorer
- X service
Connections 15
- Fact-check data → Keyword extraction: provides claims
README.md - Keyword extraction → Tweet search: writes keywords
tweet_collection/tweet_collection_v2.py - Tweet search → X service: searches
tweet_collection/tweet_collection_v2.py - Tweet search → Tweet datasets: writes tweets
tweet_collection/tweet_collection_v2.py - City tweet search → X service: searches by city
tweet_collection/tweet_collection_user_geo.py - City tweet search → Tweet datasets: writes tweets
tweet_collection/tweet_collection_user_geo.py - Tweet datasets → Data preparation and analysis: supplies records
- Data preparation and analysis → Stance datasets: prepares datasets
- RATSD classification → Stance datasets: outputs labels
README.md - Stance datasets → Dataset loading and filters: reads CSVs
tsm_fn.py - State geography → Dataset loading and filters: filters states
tsm_fn.py - Explorer → Streamlit dashboard: selects filters
README.md - Streamlit dashboard → Dataset loading and filters: requests datasets
README.md - Streamlit dashboard → Interactive U.S. map: renders map
streamlit_app.py - Streamlit dashboard → Distribution and timeline: renders charts
streamlit_app.py