Spaces:
Sleeping
Sleeping
Crowdsource
#1
by Kk75 - opened
Files changed (20)
- .env.exampleDeleted-12
- .gitignoreDeleted-48
- DockerfileDeleted-30
- QUICKSTART.mdDeleted-109
- README.md+6-291
- SECRETS_SETUP.mdDeleted-361
- app.pyDeleted-184
- config.json.exampleDeleted-27
- credentials.json.exampleDeleted-12
- data/processed/digiwords_grouped.jsonDeleted-962
- data/processed/processed_dialects.jsonDeleted
- index.html+537-376
- requirements.txtDeleted-6
- scripts/automation_runner.pyDeleted-169
- scripts/check_sheet_names.pyDeleted-63
- scripts/csv_to_json.pyDeleted-160
- scripts/file_watcher.pyDeleted-129
- scripts/sheets_sync.pyDeleted-190
- sheets_output/digiwords_grouped.csvDeleted-179
- sheets_output/processed_dialects.csvDeleted
123456789101112# Hugging Face Spaces Environment Variables# Copy this file to .env for local testing# On HF Spaces, set these as Space secrets
# Full JSON content of config.json (paste the entire JSON as one line or use multiline)HF_CONFIG_JSON='{"google_sheets":{"enabled":true,"sync_interval_minutes":5,"credentials_file":"credentials.json","spreadsheets":[{"id":"YOUR_SPREADSHEET_ID_1","sheet_name":"processed_dialects","output_file":"sheets_output/processed_dialects.csv"},{"id":"YOUR_SPREADSHEET_ID_2","sheet_name":"digiwords_grouped","output_file":"sheets_output/digiwords_grouped.csv"}]},"file_watcher":{"enabled":true,"watch_directory":"sheets_output","file_patterns":["*.csv"]},"output":{"json_directory":"data/processed"}}'
# Full JSON content of credentials.json (paste the entire service account JSON)HF_CREDENTIALS_JSON='{"type":"service_account","project_id":"your-project","private_key_id":"...","private_key":"-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n","client_email":"...@...iam.gserviceaccount.com","client_id":"...","auth_uri":"https://accounts.google.com/o/oauth2/auth","token_uri":"https://oauth2.googleapis.com/token","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs","client_x509_cert_url":"..."}'
# Optional: Port for local development (HF Spaces uses 7860 by default)PORT=7860123456789101112131415161718192021222324252627282930313233343536373839404142434445464748# Python__pycache__/*.py[cod]*$py.class*.so.Pythonenv/venv/ENV/build/develop-eggs/dist/downloads/eggs/.eggs/lib/lib64/parts/sdist/var/wheels/*.egg-info/.installed.cfg*.egg
# Google Credentials (IMPORTANT: Never commit these!)credentials.jsonconfig.jsontoken.json*.json.backup
# Environment variables.env.env.local
# IDE.vscode/.idea/*.swp*.swo*~
# OS.DS_StoreThumbs.db
# Logs*.log123456789101112131415161718192021222324252627282930FROM python:3.11-slim
# Set working directoryWORKDIR /app
# Install system dependenciesRUN apt-get update && apt-get install -y \ git \ && rm -rf /var/lib/apt/lists/*
# Copy requirements first for better cachingCOPY requirements.txt .
# Install Python dependenciesRUN pip install --no-cache-dir -r requirements.txt
# Copy application filesCOPY . .
# Create directories for outputRUN mkdir -p sheets_output data/processed
# Expose port 7860 (HF Spaces default)EXPOSE 7860
# Set environment variable for portENV PORT=7860
# Run the applicationCMD ["python", "app.py"]123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109# Quick Start Guide
## For Local Development
### 1. Install Dependencies
```bashcd /home/kashikuldeep/Desktop/dialect-map
# Install Python dependenciespip install -r requirements.txt# OR if you have externally managed Python:pipx install -r requirements.txt```
### 2. Configure Secrets
Choose ONE of these methods:
#### Method A: Using actual config files (easier for local dev)
```bash# Copy templatescp config.json.example config.jsoncp credentials.json.example credentials.json
# Edit with your actual Google Cloud credentialsnano config.json # Update spreadsheet IDsnano credentials.json # Paste your service account JSON```
#### Method B: Using environment variables (simulates HF Spaces)
```bash# Copy .env templatecp .env.example .env
# Edit .env with your actual JSON contentnano .env
# Set your actual spreadsheet IDs and credentials```
### 3. Run the Application
```bash# Start the apppython3 app.py
# Open your browser to:# http://localhost:7860/index.html```
The app will:- ✅ Load secrets from environment or files- ✅ Start Google Sheets sync automation (every 5 minutes)- ✅ Serve the interactive map on port 7860
---
## For Hugging Face Spaces Deployment
See **[SECRETS_SETUP.md](SECRETS_SETUP.md)** for complete deployment instructions.
**Quick summary:**1. Create a new Space on Hugging Face2. Add two secrets in Space settings: - `HF_CONFIG_JSON` - your entire config.json content - `HF_CREDENTIALS_JSON` - your entire credentials.json content3. Push your code to the Space4. Access your live app!
---
## Files You Need
| File | Purpose | How to Get ||------|---------|------------|| `config.json` | App configuration with spreadsheet IDs | Copy from `config.json.example` and edit || `credentials.json` | Google service account credentials | Download from Google Cloud Console |
**Important:** These files are in `.gitignore` - never commit them!
---
## Troubleshooting
**"ModuleNotFoundError: No module named 'google'"**- Install dependencies: `pip install -r requirements.txt`
**"HF_CONFIG_JSON not found"**- You need to either: - Create `config.json` file locally, OR - Set `HF_CONFIG_JSON` environment variable
**"Credentials file not found"**- Follow [SECRETS_SETUP.md](SECRETS_SETUP.md) steps 1.1-1.4 to get credentials
---
## What Gets Created
When you run `app.py`:- `config.json` - Created from `HF_CONFIG_JSON` env var (if set)- `credentials.json` - Created from `HF_CREDENTIALS_JSON` env var (if set)- `sheets_output/*.csv` - Downloaded from Google Sheets- `data/processed/*.json` - Converted from CSV files
All of these are in `.gitignore` and safe to regenerate.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296---title: Telugu Dialect Mapemoji: 🗺️colorFrom: bluecolorTo: purplesdk: dockerpinned: falselicense: mit---# Telugu Dialect Map**Interactive web-based visualization of Telugu dialect words across Telangana and Andhra Pradesh districts.**## 🎯 Features- **48 Districts**: 33 Telangana + 15 Andhra Pradesh districts- **Dynamic Data Loading**: Automatically loads data from JSON sources- **Interactive Map**: Click districts to explore local vocabulary, meanings, and sources- **Rich Content**: 3000+ verified dialect terms from crowdsourced and JSONL data- **Zero Build Required**: Pure static site with automatic data loading- **Google Sheets Integration**: Automated synchronization with Google Sheets## 🚀 Deployment Options### Option 1: Hugging Face Spaces (Recommended for Public Access)Deploy to Hugging Face Spaces with continuous automation:1. **Create a Space** on [Hugging Face](https://huggingface.co/spaces)2. **Configure secrets** for `config.json` and `credentials.json`3. **Push your code** to the Space repository4. **Access your app** at `https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE`📖 **[Complete HF Spaces Setup Guide →](SECRETS_SETUP.md)**### Option 2: Local Development## 🚀 How to Run### **Complete Setup (First Time)**```bash# 1. Navigate to project directorycd /home/kashikuldeep/Desktop/swechaworkspace/dilacet-map/indian-dialects-maps# 2. Activate virtual environmentsource venv/bin/activate# 3. Start automation (syncs Google Sheets every 5 minutes)python scripts/automation_runner.py &# 4. Start web server (in new terminal or background)python -m http.server 8080 &# 5. Open in browser# Navigate to: http://localhost:8080/```### **Quick Run (After First Time)**```bash# Activate virtual environmentsource venv/bin/activate# Start both servicespython scripts/automation_runner.py &python -m http.server 8080 &# Open: http://localhost:8080/```### **Stop Services**```bash# Press Ctrl+C in the terminals, or:pkill -f automation_runnerpkill -f "http.server 8080"```**Important:** Use `http://localhost:8080/` not `file://` URLs (browser security blocks JSON loading from file://)---## 🎯 What You'll See1. **Automation Console**: Shows sync status every 5 minutes2. **Web Interface**: Interactive map with 48 districts (33 Telangana + 15 Andhra Pradesh)3. **Auto-Updates**: Edit Google Sheets → Changes appear within 5 minutes!## 🤖 Automated Data UpdatesThe project includes **automated synchronization** from Google Sheets:- **File Watcher**: Automatically converts CSV → JSON when files change- **Google Sheets Sync**: Downloads sheet data every 5 minutes- **Zero Manual Work**: Update your Google Sheet and changes appear automatically!### ConfigurationYour automation is already configured for:- **Processed Dialects Sheet**: 901 rows- **Digiwords Sheet**: 178 rows- **Sync Interval**: Every 5 minutesTo modify settings, edit `config.json`:```json{"google_sheets": {"enabled": true,"sync_interval_minutes": 5,"spreadsheets": [...]}}```📖 **[Full Automation Setup Guide →](AUTOMATION_SETUP.md)**## 📂 Project Structure```indian-dialects-maps/├── index.html # Main visualization (open this via http server)├── data/│ └── processed/│ ├── processed_dialects.json # JSONL-processed dialect data│ └── digiwords_grouped.json # Crowdsourced dialect data├── sheets_output/ # CSV files (auto-converted to JSON)│ ├── processed_dialects.csv│ └── digiwords_grouped.csv├── scripts/ # Automation scripts (NEW!)│ ├── csv_to_json.py # CSV → JSON converter│ ├── sheets_sync.py # Google Sheets downloader│ ├── file_watcher.py # Auto-conversion on file changes│ └── automation_runner.py # Main automation orchestrator├── config.json # Automation configuration├── requirements.txt # Python dependencies├── AUTOMATION_SETUP.md # Detailed setup guide└── README.md```## 🔄 How It Works### Manual Mode (Original)1. **Load `index.html`**: Contains hardcoded data for 33 Telangana districts2. **Fetch `processed_dialects.json`**: Enhances/adds districts from JSONL data3. **Fetch `digiwords_grouped.json`**:- Merges additional words into Telangana districts- Automatically adds 15 Andhra Pradesh districts with coordinates4. **Render**: All districts appear on the map with merged data### Automated Mode (NEW!)1. **Google Sheets**: Update your dialect data in Google Sheets2. **Auto-Sync**: Script downloads sheets as CSV (every 5 min)3. **File Watcher**: Detects CSV changes4. **Auto-Convert**: CSV files → JSON format5. **Browser**: Refresh to see updates on the map!**Flow:**```Google Sheet → CSV (sheets_output/) → JSON (data/processed/) → Browser (index.html)↓ ↓ ↓Manual Edit File Watcher Auto-Refresh```**Smart Merging:**- Existing districts → Appends new words- New AP districts → Creates markers automatically- Graceful fallback if JSON files are missing## 📊 Current Data Coverage| State | Districts | Words | Sources ||-------|-----------|-------|---------|| **Telangana** | 33 | 2000+ | Hardcoded + JSONL + Digiwords || **Andhra Pradesh** | 15 | 1000+ | Digiwords (crowdsourced) || **Total** | **48** | **3000+** | Multiple sources |### Andhra Pradesh Districts:Anantapur, Annamayya, Chittoor, East Godavari, Eluru, Kadapa, Kurnool, Nandyal, Ongole, Tirupati, Srikakulam, Visakhapatnam, Vizianagaram, West Godavari, Rayalaseema## 🎨 Adding New Data### Update Existing JSON Files**Edit `data/processed/digiwords_grouped.json`:**```json{"Telangana": {"YourDistrict": [{"t": "తెలుగుపదం", "m": "meaning", "s": "Crowd"}]},"Andhra Pradesh": {"YourDistrict": [{"t": "తెలుగుపదం", "m": "meaning", "s": "Crowd"}]}}```**Edit `data/processed/processed_dialects.json`:**```json[{"name": "YourDistrict","region": "Region Name","words": [{"t": "తెలుగుపదం", "m": "meaning", "s": "Source"}]}]```Then refresh the browser!### Add New AP District CoordinatesIf adding a new Andhra Pradesh district, update `index.html`:```javascriptconst AP_COORDINATES = {"YourDistrict": {lat: 00.0000,lng: 00.0000,region: "Region Name",history: "Historical context..."},// ...};```## 🛠️ Technical Stack- **Frontend**: HTML5, Vanilla JavaScript, Leaflet.js- **Data Format**: JSON (pre-processed)- **Map Library**: Leaflet with CartoDB basemap- **Server**: Any HTTP server (Python, Node, etc.)- **No Build Step**: Pure static site## 🐛 Troubleshooting### Data Not Loading?✅ **Check #1:** Are you using `http://localhost:8000/`?- ❌ Don't use `file://` URLs- ✅ Use an HTTP server✅ **Check #2:** Is the server running?```bashpython3 -m http.server 8000```✅ **Check #3:** Hard refresh the page- Press `Ctrl + Shift + R` (Windows/Linux)- Press `Cmd + Shift + R` (Mac)✅ **Check #4:** Check browser console (F12)- Look for fetch errors- Should see loading messages### Server Won't Start?```bash# Kill process on port 8000lsof -ti:8000 | xargs kill -9# Start freshpython3 -m http.server 8000```### Still Not Working?1. Open browser console (F12)2. Look for error messages3. Check that JSON files exist in `data/processed/`4. Verify you're on the correct URL (`localhost:8000` not `127.0.0.1` if redirects are weird)## 📝 Technical Notes- Telugu text uses web fonts (Poppins, Ramabhadra)- Console shows detailed merge logs for debugging- Map centered at (16.5°N, 79.8°E) to show both states- Zoom level: 6.5 (fits both Telangana and AP)- Data loads asynchronously with `async/await`## 🤝 ContributingTo add more dialect data:1. Edit the JSON files in `data/processed/`2. Refresh `http://localhost:8000/`3. That's it!---**Made with ❤️ for preserving Telugu linguistic heritage across Telangana and Andhra Pradesh**1234567891011---title: Telangana Dialect Mapemoji: 🐠colorFrom: graycolorTo: purplesdk: staticpinned: falselicense: agpl-3.0---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361# Hugging Face Spaces Secrets Setup Guide
This guide explains how to configure and deploy your Telugu Dialect Map to Hugging Face Spaces with secure secrets management.
## Overview
Your application requires two secret files:- **`config.json`**: Configuration for Google Sheets sync and automation- **`credentials.json`**: Google Cloud service account credentials
These files contain sensitive information and should NEVER be committed to git. Instead, we'll use Hugging Face Spaces **secrets** (environment variables) to store them securely.
---
## Step 1: Obtain Google Service Account Credentials
### 1.1 Create a Google Cloud Project
1. Go to [Google Cloud Console](https://console.cloud.google.com/)2. Create a new project or select an existing one3. Note your project ID
### 1.2 Enable Google Sheets API
1. In your project, go to **APIs & Services** → **Library**2. Search for "Google Sheets API"3. Click **Enable**
### 1.3 Create a Service Account
1. Go to **APIs & Services** → **Credentials**2. Click **Create Credentials** → **Service Account**3. Fill in the details: - **Service account name**: `dialect-map-automation` - **Service account ID**: (auto-generated) - **Description**: "Service account for dialect map Google Sheets automation"4. Click **Create and Continue**5. Skip the optional steps (roles and user access)6. Click **Done**
### 1.4 Create and Download Service Account Key
1. Click on the service account you just created2. Go to the **Keys** tab3. Click **Add Key** → **Create new key**4. Select **JSON** format5. Click **Create**6. A JSON file will be downloaded - this is your `credentials.json`7. **Keep this file secure!** It provides full access to your Google Sheets
### 1.5 Share Your Google Sheets with the Service Account
1. Open your `credentials.json` file2. Find the `client_email` field (e.g., `dialect-map-automation@your-project.iam.gserviceaccount.com`)3. Copy this email address4. Open each Google Sheet you want to sync5. Click **Share** button6. Paste the service account email7. Give it **Editor** or **Viewer** access (Editor if you want to write data back)8. Click **Send**
---
## Step 2: Configure config.json
Create your `config.json` file with your specific settings:
```json{ "google_sheets": { "enabled": true, "sync_interval_minutes": 5, "credentials_file": "credentials.json", "spreadsheets": [ { "id": "YOUR_ACTUAL_SPREADSHEET_ID_HERE", "sheet_name": "processed_dialects", "output_file": "sheets_output/processed_dialects.csv" }, { "id": "YOUR_ACTUAL_SPREADSHEET_ID_HERE", "sheet_name": "digiwords_grouped", "output_file": "sheets_output/digiwords_grouped.csv" } ] }, "file_watcher": { "enabled": true, "watch_directory": "sheets_output", "file_patterns": ["*.csv"] }, "output": { "json_directory": "data/processed" }}```
### Finding Your Spreadsheet ID
Your Google Sheets URL looks like:```https://docs.google.com/spreadsheets/d/1AbC123XyZ456_Example_ID/edit#gid=0 ^^^^^^^^^^^^^^^^^^^^^^^^^ This is your spreadsheet ID```
Copy the ID from your URL and replace `YOUR_ACTUAL_SPREADSHEET_ID_HERE` in the config.
---
## Step 3: Deploy to Hugging Face Spaces
### 3.1 Create a New Space
1. Go to [Hugging Face](https://huggingface.co/)2. Click your profile → **New Space**3. Fill in the details: - **Space name**: `telugu-dialect-map` (or your choice) - **License**: Choose appropriate license - **Space SDK**: Select **Static** (we'll use a custom Python app) - **Visibility**: Public or Private4. Click **Create Space**
### 3.2 Push Your Code to the Space
You can either:
**Option A: Use Git**```bash# Clone the Space repositorygit clone https://huggingface.co/spaces/YOUR_USERNAME/telugu-dialect-mapcd telugu-dialect-map
# Copy your project files (excluding secrets!)cp -r /path/to/dialect-map/* .
# Make sure .gitignore is in placecat .gitignore # Should include config.json and credentials.json
# Commit and pushgit add .git commit -m "Initial commit"git push```
**Option B: Upload via Web Interface**1. In your Space, click **Files** tab2. Click **Add file** → **Upload files**3. Select all your project files (EXCEPT `config.json` and `credentials.json`)4. Click **Commit changes**
### 3.3 Add Secrets to Your Space
This is the **critical step** - we'll add your sensitive credentials as secrets.
1. In your Space, click the **Settings** tab2. Scroll down to **Repository secrets**3. Add the following secrets:
#### Secret 1: HF_CONFIG_JSON
- **Name**: `HF_CONFIG_JSON`- **Value**: Paste the **entire contents** of your `config.json` file Example (all on one line): ``` {"google_sheets":{"enabled":true,"sync_interval_minutes":5,"credentials_file":"credentials.json","spreadsheets":[{"id":"1AbC123XyZ456_Example","sheet_name":"processed_dialects","output_file":"sheets_output/processed_dialects.csv"}]},"file_watcher":{"enabled":true,"watch_directory":"sheets_output","file_patterns":["*.csv"]},"output":{"json_directory":"data/processed"}} ```
#### Secret 2: HF_CREDENTIALS_JSON
- **Name**: `HF_CREDENTIALS_JSON`- **Value**: Paste the **entire contents** of your `credentials.json` file
Example (all on one line, with escaped newlines in private key): ``` {"type":"service_account","project_id":"your-project","private_key_id":"abc123...","private_key":"-----BEGIN PRIVATE KEY-----\\nMIIEvQIB...\\n-----END PRIVATE KEY-----\\n","client_email":"name@project.iam.gserviceaccount.com",...} ```
4. Click **Add secret** for each one
**Important Notes:**- The entire JSON must be on one line (no newlines except in the `private_key` field where `\n` should be `\\n`)- Make sure to escape special characters if needed- You can use a JSON minifier tool to compact your JSON
### 3.4 Rebuild Your Space
After adding secrets:1. Your Space should automatically rebuild2. Watch the **Logs** tab for any errors3. Once built, click **App** tab to view your running application
---
## Step 4: Verify Deployment
### 4.1 Check Space Logs
1. Go to your Space's **Logs** tab2. You should see: ``` 🔐 Loading secrets from environment variables... ✅ Created config.json from HF_CONFIG_JSON secret ✅ Created credentials.json from HF_CREDENTIALS_JSON secret 🚀 Starting automation runner... ✅ Automation runner started 🌐 Starting web server on port 7860... ```
3. If you see errors, check: - JSON formatting in your secrets - Spreadsheet IDs are correct - Service account has access to sheets
### 4.2 Access Your Application
1. Click the **App** tab2. You should see your Telugu Dialect Map interface3. The map should load with data from your Google Sheets
### 4.3 Verify Automation
1. Edit your Google Sheet (add/modify some dialect data)2. Wait 5 minutes (or your configured interval)3. Check the Space logs - you should see sync messages4. Refresh your app - changes should appear
---
## Troubleshooting
### "HF_CONFIG_JSON not found in environment"
**Problem**: The secret wasn't added or has the wrong name.
**Solution**:1. Go to Space Settings → Repository secrets2. Verify the secret name is exactly `HF_CONFIG_JSON` (case-sensitive)3. Add it if missing4. Rebuild the Space
### "Error parsing HF_CONFIG_JSON"
**Problem**: The JSON is malformed.
**Solution**:1. Copy your `config.json` content2. Use a JSON validator (e.g., [jsonlint.com](https://jsonlint.com/))3. Make sure it's valid JSON4. Remove all newlines (except `\n` in strings should become `\\n`)5. Update the secret with the corrected value
### "Connection refused" or "Credentials invalid"
**Problem**: Google service account credentials are wrong or not shared.
**Solution**:1. Verify `credentials.json` content is correct2. Check that you shared your Google Sheets with the service account email3. Verify the Sheets API is enabled in Google Cloud Console4. Regenerate service account key if needed
### "Automation not syncing"
**Problem**: Automation runner isn't working.
**Solution**:1. Check Space logs for error messages2. Verify `spreadsheets.id` values in config.json match your actual sheet IDs3. Verify `sheet_name` values match the tab names in your spreadsheets4. Check that service account has Editor access (not just Viewer)
### Space keeps crashing or restarting
**Problem**: HF Spaces free tier may have resource limits.
**Solution**:1. Consider upgrading to a paid Space for guaranteed uptime2. Reduce sync interval (e.g., 15-30 minutes instead of 5)3. Check logs for memory/CPU issues
---
## Local Testing (Before Deploying)
Before deploying to HF Spaces, test locally:
### 1. Create actual config files
```bashcd /home/kashikuldeep/Desktop/dialect-map
# Copy examples and fill in real valuescp config.json.example config.jsoncp credentials.json.example credentials.json
# Edit with your actual valuesnano config.jsonnano credentials.json```
### 2. Test the app
```bash# Run the app locallypython app.py
# Should see:# ✅ Created config.json from HF_CONFIG_JSON secret (if using .env)# 🚀 Starting automation runner...# 🌐 Starting web server on port 7860...
# Open browser to http://localhost:7860```
### 3. Test with environment variables (simulating HF Spaces)
```bash# Create .env filecp .env.example .env
# Edit .env with your actual JSON (minified)nano .env
# Load environment and runpython -c "from dotenv import load_dotenv; load_dotenv()" && python app.py```
---
## Security Best Practices
1. **Never commit secrets to git** - Keep `config.json` and `credentials.json` in `.gitignore` - Double-check before pushing code
2. **Rotate credentials regularly** - Generate new service account keys periodically - Update HF Spaces secrets
3. **Use minimal permissions** - Service account should only have access to necessary sheets - Use Viewer access if you don't need to write back
4. **Monitor usage** - Check Google Cloud Console for API usage - Set up billing alerts - Review Space logs regularly
---
## Need Help?
- **Google Cloud Issues**: [Google Cloud Support](https://cloud.google.com/support)- **Hugging Face Spaces**: [HF Documentation](https://huggingface.co/docs/hub/spaces)- **Project Issues**: Check the Space logs first, then review this guide
---
**Happy Mapping! 🗺️**123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184#!/usr/bin/env python3"""Hugging Face Spaces Entry PointThis script:1. Loads secrets from HF Spaces environment variables2. Creates config.json and credentials.json from those secrets3. Starts the automation runner in the background4. Serves the static web interface"""
import osimport jsonimport subprocessimport signalimport sysimport timeimport threadingfrom pathlib import Pathfrom http.server import HTTPServer, SimpleHTTPRequestHandlerfrom functools import partial
# ConfigurationPORT = int(os.getenv('PORT', 7860))BASE_DIR = Path(__file__).parentAUTOMATION_RUNNER = BASE_DIR / "scripts" / "automation_runner.py"
# Global process reference for cleanupautomation_process = None
def load_secrets_from_env(): """Load secrets from HF Spaces environment variables and create config files""" print("🔐 Loading secrets from environment variables...") # Load config.json from environment config_json_str = os.getenv('HF_CONFIG_JSON') if config_json_str: try: config_data = json.loads(config_json_str) config_file = BASE_DIR / "config.json" with open(config_file, 'w') as f: json.dump(config_data, f, indent=2) print(f"✅ Created config.json from HF_CONFIG_JSON secret") except json.JSONDecodeError as e: print(f"❌ Error parsing HF_CONFIG_JSON: {e}") sys.exit(1) else: config_file = BASE_DIR / "config.json" if not config_file.exists(): print("⚠️ HF_CONFIG_JSON not found in environment") print("⚠️ Please set HF_CONFIG_JSON secret in your Hugging Face Space settings") print("⚠️ See SECRETS_SETUP.md for instructions") # Don't exit - allow the app to run without automation # Load credentials.json from environment credentials_json_str = os.getenv('HF_CREDENTIALS_JSON') if credentials_json_str: try: credentials_data = json.loads(credentials_json_str) credentials_file = BASE_DIR / "credentials.json" with open(credentials_file, 'w') as f: json.dump(credentials_data, f, indent=2) print(f"✅ Created credentials.json from HF_CREDENTIALS_JSON secret") except json.JSONDecodeError as e: print(f"❌ Error parsing HF_CREDENTIALS_JSON: {e}") sys.exit(1) else: credentials_file = BASE_DIR / "credentials.json" if not credentials_file.exists(): print("⚠️ HF_CREDENTIALS_JSON not found in environment") print("⚠️ Google Sheets sync will not work without credentials") print()
def start_automation(): """Start the automation runner in the background""" global automation_process # Check if automation script exists if not AUTOMATION_RUNNER.exists(): print(f"⚠️ Automation runner not found: {AUTOMATION_RUNNER}") return # Check if config exists config_file = BASE_DIR / "config.json" if not config_file.exists(): print("⚠️ config.json not found, skipping automation startup") return print("🚀 Starting automation runner...") try: automation_process = subprocess.Popen( [sys.executable, str(AUTOMATION_RUNNER)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, bufsize=1 ) # Stream automation output in a separate thread def stream_output(): for line in automation_process.stdout: print(f"[AUTOMATION] {line}", end='') threading.Thread(target=stream_output, daemon=True).start() print("✅ Automation runner started\n") except Exception as e: print(f"❌ Failed to start automation: {e}\n")
def cleanup(signum=None, frame=None): """Cleanup function to terminate background processes""" global automation_process print("\n\n🛑 Shutting down...") if automation_process: print("🧹 Stopping automation runner...") automation_process.terminate() automation_process.wait(timeout=5) print("✅ Cleanup complete\n") sys.exit(0)
class CustomHTTPRequestHandler(SimpleHTTPRequestHandler): """Custom handler to serve from the correct directory""" def __init__(self, *args, **kwargs): super().__init__(*args, directory=str(BASE_DIR), **kwargs) def log_message(self, format, *args): """Custom logging to show requests""" print(f"[WEB] {self.address_string()} - {format % args}")
def start_web_server(): """Start the HTTP server to serve the static files""" print(f"🌐 Starting web server on port {PORT}...") handler = CustomHTTPRequestHandler httpd = HTTPServer(('0.0.0.0', PORT), handler) print(f"✅ Web server running at http://0.0.0.0:{PORT}") print(f"📊 Open the map: http://0.0.0.0:{PORT}/index.html") print(f"💡 Press Ctrl+C to stop\n") try: httpd.serve_forever() except KeyboardInterrupt: pass finally: httpd.shutdown()
def main(): """Main entry point""" print("=" * 70) print("🗺️ Telugu Dialect Map - Hugging Face Spaces") print("=" * 70) print() # Register signal handlers for graceful shutdown signal.signal(signal.SIGINT, cleanup) signal.signal(signal.SIGTERM, cleanup) # Load secrets from environment variables load_secrets_from_env() # Start background automation start_automation() # Give automation a moment to start time.sleep(2) # Start web server (blocks here) start_web_server() # Cleanup (if we ever get here) cleanup()
if __name__ == "__main__": main()123456789101112131415161718192021222324252627{ "google_sheets": { "enabled": true, "sync_interval_minutes": 5, "credentials_file": "credentials.json", "spreadsheets": [ { "id": "YOUR_SPREADSHEET_ID_1_HERE", "sheet_name": "processed_dialects", "output_file": "sheets_output/processed_dialects.csv" }, { "id": "YOUR_SPREADSHEET_ID_2_HERE", "sheet_name": "digiwords_grouped", "output_file": "sheets_output/digiwords_grouped.csv" } ] }, "file_watcher": { "enabled": true, "watch_directory": "sheets_output", "file_patterns": ["*.csv"] }, "output": { "json_directory": "data/processed" }}123456789101112{ "type": "service_account", "project_id": "your-project-id", "private_key_id": "your-private-key-id", "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY_HERE\n-----END PRIVATE KEY-----\n", "client_email": "your-service-account@your-project.iam.gserviceaccount.com", "client_id": "your-client-id", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/your-service-account%40your-project.iam.gserviceaccount.com"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962{ "Telangana": { "Adilabad": [ { "t": "చోలోట్", "m": "మంచి (Good)", "s": "Crowd" }, { "t": "వంచెడ్ చిబడ్", "m": "అంటు ముట్టుకోడం", "s": "Crowd" }, { "t": "వడోగు", "m": "దూడ (Calf)", "s": "Crowd" }, { "t": "ముచిలి పడన్", "m": "ఎర్ర తుమ్మెద", "s": "Crowd" }, { "t": "సర్కార్", "m": "నాశనం", "s": "Crowd" }, { "t": "వజీర్", "m": "ముసలి", "s": "Crowd" }, { "t": "ఖైని", "m": "వదిన", "s": "Crowd" }, { "t": "సూన్", "m": "కోడలు", "s": "Crowd" }, { "t": "Poral batal", "m": "Temple term (Keslapur)", "s": "Crowd" } ], "Gadwal": [ { "t": "ఓల్లి", "m": "No", "s": "Crowd" }, { "t": "కూడు తింటవా", "m": "తిన్నారా", "s": "Crowd" }, { "t": "తువ్వ", "m": "ఎర్ర పొలం", "s": "Crowd" }, { "t": "పురకోస", "m": "జూట్ దార", "s": "Crowd" }, { "t": "జుముజలమ్మ", "m": "దేవత", "s": "Crowd" }, { "t": "తలుగు ఎల్లమ్మ", "m": "దేవత", "s": "Crowd" }, { "t": "తెల్వది", "m": "Don't know", "s": "Crowd" }, { "t": "మడసంగ", "m": "నెమ్మదిగా/జాగ్రత్తగా", "s": "Crowd" }, { "t": "రప్పున", "m": "జల్ది", "s": "Crowd" }, { "t": "మడసంగ", "m": "Careful", "s": "Crowd" } ], "Hyderabad": [ { "t": "కిటికీ", "m": "Window", "s": "Crowd" }, { "t": "అంగీ", "m": "Shirt", "s": "Crowd" }, { "t": "కుక్క", "m": "Dog", "s": "Crowd" }, { "t": "కుర్చీ", "m": "Chair", "s": "Crowd" }, { "t": "Amma buvva pettava", "m": "Mother feed me", "s": "Crowd" }, { "t": "Chaderghat", "m": "Location", "s": "Crowd" }, { "t": "తొవ్వ దారి", "m": "Way/Path", "s": "Crowd" }, { "t": "పాతాళగరిసె", "m": "Tool to remove bucket", "s": "Crowd" }, { "t": "అంబటాలు", "m": "Afternoon time", "s": "Crowd" }, { "t": "ఇన్సురాయి", "m": "Stone tool", "s": "Crowd" }, { "t": "బుక్కెట్", "m": "Tool for well", "s": "Crowd" } ], "Jangaon": [ { "t": "ఏమైంది", "m": "What happened", "s": "Crowd" } ], "Karimnagar": [ { "t": "బూరెలు", "m": "భక్ష్యాలు", "s": "Crowd" }, { "t": "అచ్చినం", "m": "వచ్చాము", "s": "Crowd" }, { "t": "పాయినం", "m": "వెళ్ళాము", "s": "Crowd" }, { "t": "సవాలు", "m": "Question/Challenge", "s": "Crowd" }, { "t": "గటక", "m": "Food item", "s": "Crowd" }, { "t": "వస్తున్నావ", "m": "వస్తున్నావు", "s": "Crowd" }, { "t": "ఊశము", "m": "బద్ధకం/అలసత్వం", "s": "Crowd" }, { "t": "వందంగా ఉంది", "m": "బాగా", "s": "Crowd" }, { "t": "రువిడ్లు", "m": "Shelf", "s": "Crowd" }, { "t": "కార్యపాలు", "m": "వస్తున్నం/పోతున్నాం", "s": "Crowd" }, { "t": "బావి", "m": "నూతి", "s": "Crowd" }, { "t": "గంప", "m": "గుల్ల", "s": "Crowd" }, { "t": "బం��ి", "m": "Ball", "s": "Crowd" } ], "Mahabubnagar": [ { "t": "వీధి", "m": "Street", "s": "Crowd" }, { "t": "జల్ది", "m": "తొందరగా", "s": "Crowd" }, { "t": "జింగిడి", "m": "బర్రెల గుంపు", "s": "Crowd" }, { "t": "బాగమ్", "m": "Exhibition", "s": "Crowd" }, { "t": "చలక", "m": "Field", "s": "Crowd" }, { "t": "ఈల పేట", "m": "కత్తి పేట", "s": "Crowd" } ], "Mahabubabad": [ { "t": "బొచ్చెడు", "m": "చాలా (A lot)", "s": "Crowd" }, { "t": "ఏ మయింది అన్నా", "m": "What happened", "s": "Crowd" } ], "Medak": [ { "t": "కీసా", "m": "జేబు", "s": "Crowd" }, { "t": "పైను", "m": "ఆరు (Six)", "s": "Crowd" } ], "Nagar Kurnool": [ { "t": "అంబటాలు", "m": "Morning meal time", "s": "Crowd" }, { "t": "మంకర", "m": "Winter cold", "s": "Crowd" }, { "t": "లాడు", "m": "తల్లి కూతురు", "s": "Crowd" }, { "t": "గెనిమ", "m": "పొలం గట్టు", "s": "Crowd" }, { "t": "కోంత లోలు", "m": "Old name for Nagar Kurnool", "s": "Crowd" } ], "Nalgonda": [ { "t": "Dupa aithundhi", "m": "దాహం వేస్తుంది", "s": "Crowd" }, { "t": "సేరు", "m": "1kg measuring device", "s": "Crowd" }, { "t": "Kurdedu Biyam", "m": "Amount of rice", "s": "Crowd" }, { "t": "Anglam dundu", "m": "అగ్గి పెట్టె", "s": "Crowd" }, { "t": "సది", "m": "Take the box", "s": "Crowd" }, { "t": "తట్ట", "m": "పళ్ళెం", "s": "Crowd" }, { "t": "కోవెల", "m": "గుడి", "s": "Crowd" }, { "t": "ఊసలు", "m": "Weaving technique", "s": "Crowd" }, { "t": "బువ్వ", "m": "Cooked rice", "s": "Crowd" }, { "t": "తవాచీ", "m": "Shelf with doors", "s": "Crowd" }, { "t": "తపుకు", "m": "Plate on vessel", "s": "Crowd" }, { "t": "లడ్లు", "m": "అరిసెలు", "s": "Crowd" }, { "t": "దారి", "m": "బాట", "s": "Crowd" } ], "Narayanpet": [ { "t": "బుబ్బి", "m": "అమ్మ", "s": "Crowd" }, { "t": "పడం", "m": "మట్టి", "s": "Crowd" }, { "t": "చెముక్కలు", "m": "మోకాళ్ళు", "s": "Crowd" }, { "t": "మొర", "m": "మంచం", "s": "Crowd" }, { "t": "అబుత", "m": "జుట్టు", "s": "Crowd" }, { "t": "జేజి", "m": "Fat", "s": "Crowd" }, { "t": "అంబలి", "m": "జావ", "s": "Crowd" } ], "Nizamabad": [ { "t": "పంపేవుడు", "m": "పంపించడం", "s": "Crowd" }, { "t": "Pillodu", "m": "Bindu", "s": "Crowd" }, { "t": "వచ్చిండు", "m": "అచ్చిండు", "s": "Crowd" } ], "Peddapally": [ { "t": "గుమ్ము", "m": "Storage", "s": "Crowd" }, { "t": "గట్టు", "m": "దారి", "s": "Crowd" } ], "Rangareddy": [ { "t": "వీరునో", "m": "తెలుగు", "s": "Crowd" }, { "t": "తొక్కుడు", "m": "మంచం", "s": "Crowd" }, { "t": "మూర", "m": "ముంగిలి", "s": "Crowd" }, { "t": "కారం", "m": "పచ్చడి", "s": "Crowd" }, { "t": "ఈ గడ", "m": "కడ", "s": "Crowd" } ], "Siddipet": [ { "t": "అంగీ", "m": "Shirt", "s": "Crowd" }, { "t": "పొయ్యిర్రు", "m": "వెళ్ళారు", "s": "Crowd" }, { "t": "మెగులుతుంది", "m": "వర్షం వచ్చి ఆగిన", "s": "Crowd" }, { "t": "అలుకురు", "m": "Pre cultivation", "s": "Crowd" }, { "t": "పయిలం", "m": "జాగ్రత్త", "s": "Crowd" }, { "t": "తప్పెలు", "m": "Rice plate", "s": "Crowd" }, { "t": "పందిట్లు", "m": "పందిరి", "s": "Crowd" }, { "t": "రాకొచ్చింది", "m": "రాదు", "s": "Crowd" }, { "t": "పోకొచ్చింది", "m": "పోదు", "s": "Crowd" }, { "t": "కుకో", "m": "కూర్చో", "s": "Crowd" }, { "t": "ఏడారు", "m": "Afternoon time", "s": "Crowd" } ], "Wanaparthy": [ { "t": "చెప్పలకాయలు", "m": "గొంకరకాయలు", "s": "Crowd" }, { "t": "మలంచా", "m": "చెంబు", "s": "Crowd" }, { "t": "సొరకాయ", "m": "ఆనకాయ", "s": "Crowd" }, { "t": "పాశాల", "m": "Clothes", "s": "Crowd" }, { "t": "మట్టుగుండు", "m": "Keep calm", "s": "Crowd" }, { "t": "అంబరుంది", "m": "Excellent", "s": "Crowd" } ], "Warangal": [ { "t": "చేను", "m": "Crop/చలక", "s": "Crowd" }, { "t": "పొయ్యం రారా", "m": "ఇన్నానిల్లు", "s": "Crowd" }, { "t": "అసుంట", "m": "అటు వైపు", "s": "Crowd" }, { "t": "ఇసుంట", "m": "ఇటు వైపు", "s": "Crowd" }, { "t": "చద్దెర", "m": "Bed sheet", "s": "Crowd" } ] }, "Andhra Pradesh": { "Anantapur": [ { "t": "దిండు", "m": "Pillows", "s": "Crowd" } ], "Annamayya": [ { "t": "ఆ తుప్పాస్", "m": "Nonsense/Useless", "s": "Crowd" } ], "Chittoor": [ { "t": "ముడ్దులు", "m": "అంగడి", "s": "Crowd" }, { "t": "సెమిరేసినావ", "m": "Prepared", "s": "Crowd" }, { "t": "వంకాయ పులగూర్", "m": "కూర", "s": "Crowd" }, { "t": "ఈరి మోది", "m": "పచ్చడి", "s": "Crowd" }, { "t": "అబ్బ", "m": "Grandfather", "s": "Crowd" }, { "t": "జెడి", "m": "Hair knot", "s": "Crowd" } ], "East Godavari": [ { "t": "దుకాణం", "m": "కొట్టు", "s": "Crowd" }, { "t": "పైరు", "m": "బంగాళదుంప", "s": "Crowd" }, { "t": "బువ్వ", "m": "Food", "s": "Crowd" }, { "t": "గుడి", "m": "దేవాలయం", "s": "Crowd" }, { "t": "సామానం", "m": "ఆలస్యం చేయడం", "s": "Crowd" }, { "t": "బేగ రా", "m": "తొందరగా రా", "s": "Crowd" } ], "Eluru": [ { "t": "శనగపప్పు", "m": "వేరుశనగ", "s": "Crowd" }, { "t": "చాలా బాగుంది", "m": "Very good", "s": "Crowd" } ], "Kadapa": [ { "t": "కంత", "m": "రంధ్రం (Hole)", "s": "Crowd" }, { "t": "బాగా ఎక్కువగా", "m": "Exceedingly", "s": "Crowd" }, { "t": "చాపు మాటలు", "m": "పెద్ద మాటలు", "s": "Crowd" }, { "t": "బొరుగులు", "m": "మరమరాలు", "s": "Crowd" }, { "t": "రామాడం", "m": "మెత్తగా చేయడం", "s": "Crowd" }, { "t": "ఎనుము", "m": "బర్రె", "s": "Crowd" }, { "t": "ముక్కొల్", "m": "3 వాడిముళ్ళు", "s": "Crowd" } ], "Kurnool": [ { "t": "బుడ్డల నూనె", "m": "పల్లి oil (Peanut oil)", "s": "Crowd" } ], "Nandyal": [ { "t": "తంగాది", "m": "కొట్టుదు ఇచ్చింది మధ్యన", "s": "Crowd" }, { "t": "గుడి", "m": "దేవాలయము", "s": "Crowd" }, { "t": "హితాలు", "m": "బువ్వ తిన్నారా", "s": "Crowd" }, { "t": "తద్దినం", "m": "పితృ దేవతల కార్యం", "s": "Crowd" }, { "t": "తువాయి", "m": "ఆవు దూడ (Calf)", "s": "Crowd" }, { "t": "పురుకోస", "m": "Jute thread twisted", "s": "Crowd" } ], "Ongole": [ { "t": "బయట వెళ్ళాడు", "m": "బయటకు వెళ్ళాడు", "s": "Crowd" } ], "P.R. నియోజకవర్గం": [ { "t": "ఎర్రగడ్డ", "m": "Onion", "s": "Crowd" }, { "t": "తెల్ల గడ్డ", "m": "వెల్లుల్లి", "s": "Crowd" }, { "t": "ఉల్లగడ్డ", "m": "Potato", "s": "Crowd" }, { "t": "ఖిన్నారా", "m": "అద్దెకు రా", "s": "Crowd" }, { "t": "ముడక", "m": "నాగలి", "s": "Crowd" }, { "t": "కొక", "m": "చీర", "s": "Crowd" }, { "t": "రైన", "m": "జాకెట్", "s": "Crowd" }, { "t": "కడ్డీలు", "m": "అగరబత్తిలు", "s": "Crowd" }, { "t": "పెద్ద నాన్న", "m": "నాన్న అన్న", "s": "Crowd" }, { "t": "చిన్న నాన్న", "m": "నాన్న తమ్ముడు", "s": "Crowd" }, { "t": "పెద్దమ్మ", "m": "నాన్న అన్న భార్య", "s": "Crowd" }, { "t": "చిన్నమ్మ", "m": "నాన్న తమ్ముడు భార్య", "s": "Crowd" }, { "t": "పొద్దు పొయ్యింది", "m": "సాయంత్రం సమయం", "s": "Crowd" } ], "Rayalaseema": [ { "t": "లోపల", "m": "Inside", "s": "Crowd" }, { "t": "బొగాలు", "m": "Keys", "s": "Crowd" } ], "Srikakulam": [ { "t": "డొంక", "m": "తలుపు (Door)", "s": "Crowd" }, { "t": "కుంక", "m": "Pillodu", "s": "Crowd" }, { "t": "ఖాగి", "m": "వేగంగా", "s": "Crowd" }, { "t": "బాతె", "m": "చావు", "s": "Crowd" }, { "t": "అమ్మ", "m": "Mother", "s": "Crowd" }, { "t": "తెల్లారితే", "m": "వేకువన", "s": "Crowd" } ], "Tirupati": [ { "t": "ఊరాల్", "m": "Nonsense", "s": "Crowd" } ], "Vizianagaram": [ { "t": "ఉకుజురు", "m": "Egg Burji", "s": "Crowd" }, { "t": "వర్ర", "m": "కారం", "s": "Crowd" }, { "t": "బేపి", "m": "కుక్క", "s": "Crowd" }, { "t": "పైనా", "m": "పైన", "s": "Crowd" }, { "t": "దొడ్డ", "m": "పెద్ద అమ్మ", "s": "Crowd" }, { "t": "జిజ బేగరా", "m": "తొందరగా రా", "s": "Crowd" }, { "t": "బంగాళదుంప", "m": "ఆలుగడ్డ", "s": "Crowd" }, { "t": "ఉల్లిపాయ", "m": "ఎర్రగడ్డ", "s": "Crowd" }, { "t": "అప్ప", "m": "అక్క", "s": "Crowd" }, { "t": "గుంత", "m": "రంధ్రం", "s": "Crowd" }, { "t": "గెడ/బర్రె", "m": "Buffalo", "s": "Crowd" }, { "t": "గడ్డి", "m": "చిన్న సెలయేరు", "s": "Crowd" } ], "West Godavari": [ { "t": "రాతు తడి", "m": "Irrigation term", "s": "Crowd" } ], "Guntur": [ { "t": "నగబు ", "m": "An ancient word for snake", "s": "Crowd" } ] }}3 unmodified lines45678910111 unmodified lines12212312412512612723 unmodified lines1511521531541551561571589 unmodified lines16816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719839 unmodified lines23823924024124224324424524624724824917 unmodified lines26726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729816 unmodified lines31531631731831932032132232332417 unmodified lines34234334434534634734834935035135235335435535635716 unmodified lines37437537637737837938038116 unmodified lines39839940040140240340440540640739 unmodified lines4474484494504514524534544554564574584594604614624634645 unmodified lines4704714724734744754764774784794804814824834844854864875 unmodified lines4934944954964974984995005015025035045055065075085095105 unmodified lines5165175185195205215225235245255265275285295305315325335345355365375385395405415 unmodified lines5475485495505515525535545555565575585595605615625635645655665 unmodified lines57257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260328 unmodified lines63263363463563663763863964064116 unmodified lines6586596606616626636646656666676686696706716726736746756766776786796806816826836846855 unmodified lines69169269369469569669769869970070170270370470570627 unmodified lines7347357367377387397407417427437447457467477487497507517527537547557567577587597607613 unmodified lines7657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259264 unmodified lines9319329339349359369379389399409413 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Telugu Dialect Map - Telangana & Andhra Pradesh</title><link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />111 unmodified linesfont-size: 0.95rem;}#map {flex-grow: 1;height: 100%;23 unmodified lines<div id="sidebar"><div class="header"><h1>Telugu Dialect Map</h1><p id="district-counter">Loading districts...</p></div><div id="info-panel"><div style="text-align: center; color: #888; margin-top: 60px;">9 unmodified linesintegrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script><script>// --- 1. THE DATA (TELANGANA - 33 DISTRICTS) ---const dialectData = [// === NORTHERN TELANGANA ==={name: "Adilabad", lat: 19.6641, lng: 78.5320, region: "Northern Forest",history: "Heavily influenced by Gondi tribal dialects and Marathi due to the Maharashtra border.",words: [{ t: "చోలోట్", m: "మంచి (Good)", s: "Crowd" },{ t: "వంచెడ్ చిబడ్", m: "అంటు ముట్టుకోడం", s: "Crowd" },{ t: "వడోగు", m: "దూడ (Calf)", s: "Crowd" },{ t: "ముచిలి పడన్", m: "ఎర్ర తుమ్మెద", s: "Crowd" },{ t: "సర్కార్", m: "నాశనం", s: "Crowd" },{ t: "వజీర్", m: "ముసలి", s: "Crowd" },{ t: "ఖైని", m: "వదిన", s: "Crowd" },{ t: "సూన్", m: "కోడలు", s: "Crowd" },{ t: "Poral batal", m: "Temple term (Keslapur)", s: "Crowd" },{ t: "చోలోట్", m: "మంచి (Good)", s: "Crowd" },{ t: "వంచెడ్ చిబడ్", m: "అంటు ముట్టుకోడం", s: "Crowd" },{ t: "వడోగు", m: "దూడ (Calf)", s: "Crowd" },{ t: "ముచిలి పడన్", m: "ఎర్ర తుమ్మెద", s: "Crowd" },{ t: "సర్కార్", m: "నాశనం", s: "Crowd" },{ t: "వజీర్", m: "ముసలి", s: "Crowd" },{ t: "ఖైని", m: "వదిన", s: "Crowd" },{ t: "సూన్", m: "కోడలు", s: "Crowd" },{ t: "Poral batal", m: "Temple term (Keslapur)", s: "Crowd" },{ t: "కోయంగ్", m: "Dialect/Language", s: "Gondi" }, { t: "పైలం", m: "Careful", s: "Mandalikalu" },{ t: "ఆడ", m: "There", s: "General" }, { t: "కాకా", m: "Uncle", s: "Marathi Infl." },{ t: "పటేల్", m: "Village Head", s: "Tribal" }, { t: "గూడ", m: "Hamlet", s: "Rural" },39 unmodified linesname: "Nizamabad", lat: 18.6725, lng: 78.0941, region: "Indur Agrarian",history: "Rich agricultural zone (Turmeric). Strong Dakhni Urdu influence from the Nizam era.",words: [{ t: "పంపేవుడు", m: "పంపించడం", s: "Crowd" },{ t: "Pillodu", m: "Bindu", s: "Crowd" },{ t: "వచ్చిండు", m: "అచ్చిండు", s: "Crowd" },{ t: "పంపేవుడు", m: "పంపించడం", s: "Crowd" },{ t: "Pillodu", m: "Bindu", s: "Crowd" },{ t: "వచ్చిండు", m: "అచ్చిండు", s: "Crowd" },{ t: "పసుపు", m: "Turmeric", s: "Agri" }, { t: "ఐగలు", m: "Priest", s: "Mandalikalu" },{ t: "హామీ", m: "Assurance", s: "Urdu Infl." }, { t: "జీరా", m: "Boundary", s: "Agri" },{ t: "పుంటికూర", m: "Gongura", s: "Food" }, { t: "అంగడి", m: "Shop", s: "Rural" },17 unmodified linesname: "Karimnagar", lat: 18.4386, lng: 79.1288, region: "Cultural Core",history: "Considered the standard for 'Telangana Slang' in media. Sharp, distinct pronunciation.",words: [{ t: "బూరెలు", m: "భక్ష్యాలు", s: "Crowd" },{ t: "అచ్చినం", m: "వచ్చాము", s: "Crowd" },{ t: "పాయినం", m: "వెళ్ళాము", s: "Crowd" },{ t: "సవాలు", m: "Question/Challenge", s: "Crowd" },{ t: "గటక", m: "Food item", s: "Crowd" },{ t: "వస్తున్నావ", m: "వస్తున్నావు", s: "Crowd" },{ t: "ఊశము", m: "బద్ధకం/అలసత్వం", s: "Crowd" },{ t: "వందంగా ఉంది", m: "బాగా", s: "Crowd" },{ t: "రువిడ్లు", m: "Shelf", s: "Crowd" },{ t: "కార్యపాలు", m: "వస్తున్నం/పోతున్నాం", s: "Crowd" },{ t: "బావి", m: "నూతి", s: "Crowd" },{ t: "గంప", m: "గుల్ల", s: "Crowd" },{ t: "బంతి", m: "Ball", s: "Crowd" },{ t: "బూరెలు", m: "భక్ష్యాలు", s: "Crowd" },{ t: "అచ్చినం", m: "వచ్చాము", s: "Crowd" },{ t: "పాయినం", m: "వెళ్ళాము", s: "Crowd" },{ t: "సవాలు", m: "Question/Challenge", s: "Crowd" },{ t: "గటక", m: "Food item", s: "Crowd" },{ t: "వస్తున్నావ", m: "వస్తున్నావు", s: "Crowd" },{ t: "ఊశము", m: "బద్ధకం/అలసత్వం", s: "Crowd" },{ t: "వందంగా ఉంది", m: "బాగా", s: "Crowd" },{ t: "రువిడ్లు", m: "Shelf", s: "Crowd" },{ t: "కార్యపాలు", m: "వస్తున్నం/పోతున్నాం", s: "Crowd" },{ t: "బావి", m: "నూతి", s: "Crowd" },{ t: "గంప", m: "గుల్ల", s: "Crowd" },{ t: "బంతి", m: "Ball", s: "Crowd" },{ t: "తోపు", m: "Great/Top", s: "Slang" }, { t: "కేక", m: "Super", s: "Slang" },{ t: "లొల్లి", m: "Fight/Noise", s: "General" }, { t: "శాన", m: "Very", s: "Mandalikalu" },{ t: "పైసల్", m: "Money", s: "General" }, { t: "గత్తర", m: "Mess", s: "Slang" },16 unmodified linesname: "Peddapalli", lat: 18.6146, lng: 79.3705, region: "Industrial Hub",history: "Home to NTPC and Coal mines. Vocabulary is a mix of rural and industrial English loan words.",words: [{ t: "గుమ్ము", m: "Storage", s: "Crowd" },{ t: "గట్టు", m: "దారి", s: "Crowd" },{ t: "గుమ్ము", m: "Storage", s: "Crowd" },{ t: "గట్టు", m: "దారి", s: "Crowd" },{ t: "బొగ్గు", m: "Coal", s: "Mining" }, { t: "కరెంట్", m: "Power", s: "Utility" },{ t: "క్వార్టర్", m: "Housing", s: "Industry" }, { t: "షిఫ్ట్", m: "Work Shift", s: "Labor" },{ t: "గేట్", m: "Entrance", s: "General" }, { t: "పోరడు", m: "Boy", s: "General" },17 unmodified linesname: "Warangal", lat: 17.9689, lng: 79.5941, region: "Kakatiya Rural",history: "Historic Orugallu. Retains classical Telugu terms mixed with rural agricultural slang.",words: [{ t: "చేను", m: "Crop/చలక", s: "Crowd" },{ t: "పొయ్యం రారా", m: "ఇన్నానిల్లు", s: "Crowd" },{ t: "అసుంట", m: "అటు వైపు", s: "Crowd" },{ t: "ఇసుంట", m: "ఇటు వైపు", s: "Crowd" },{ t: "చద్దెర", m: "Bed sheet", s: "Crowd" },{ t: "చేను", m: "Crop/చలక", s: "Crowd" },{ t: "పొయ్యం రారా", m: "ఇన్నానిల్లు", s: "Crowd" },{ t: "అసుంట", m: "అటు వైపు", s: "Crowd" },{ t: "ఇసుంట", m: "ఇటు వైపు", s: "Crowd" },{ t: "చద్దెర", m: "Bed sheet", s: "Crowd" },{ t: "చెల్క", m: "Field", s: "Agri" }, { t: "గ���్డపార", m: "Crowbar", s: "Tools" },{ t: "నాగలి", m: "Plough", s: "Agri" }, { t: "ఎడ్లు", m: "Bulls", s: "Agri" },{ t: "పంట", m: "Crop", s: "Agri" }, { t: "ఎరువ", m: "Fertilizer", s: "Agri" },16 unmodified linesname: "Jangaon", lat: 17.7226, lng: 79.1685, region: "Central Junction",history: "A crossroads district. Famous for Jatharas and rural festivals.",words: [{ t: "ఏమైంది", m: "What happened", s: "Crowd" },{ t: "ఏమైంది", m: "What happened", s: "Crowd" },{ t: "గుట్ట", m: "Hillock", s: "Geo" }, { t: "జాతర", m: "Fair", s: "Culture" },{ t: "బోనం", m: "Offering", s: "Ritual" }, { t: "సాక", m: "Branch", s: "Nature" },{ t: "కోడి", m: "Chicken", s: "Food" }, { t: "మేక", m: "Goat", s: "Agri" },16 unmodified linesname: "Mahabubabad", lat: 17.5956, lng: 80.0053, region: "Tribal Corridor",history: "Strong Lambadi/Banjara tribal presence influences the local lexicon.",words: [{ t: "బొచ్చెడు", m: "చాలా (A lot)", s: "Crowd" },{ t: "ఏ మయింది అన్నా", m: "What happened", s: "Crowd" },{ t: "బొచ్చెడు", m: "చాలా (A lot)", s: "Crowd" },{ t: "ఏ మయింది అన్నా", m: "What happened", s: "Crowd" },{ t: "తండా", m: "Hamlet", s: "Tribal" }, { t: "బంజారా", m: "Tribe", s: "Community" },{ t: "గూడు", m: "Nest/Hut", s: "General" }, { t: "తవ్వు", m: "Dig", s: "Action" },{ t: "పాట", m: "Song", s: "Culture" }, { t: "ఆట", m: "Dance/Play", s: "Culture" },39 unmodified linesname: "Mahabubnagar", lat: 16.7488, lng: 78.0035, region: "Palamuru",history: "Palamuru region. Known for migration (Valasa) and distinct, rougher intonation.",words: [{ t: "వీధి", m: "Street", s: "Crowd" },{ t: "జల్ది", m: "తొందరగా", s: "Crowd" },{ t: "జింగిడి", m: "బర్రెల గుంపు", s: "Crowd" },{ t: "బాగమ్", m: "Exhibition", s: "Crowd" },{ t: "చలక", m: "Field", s: "Crowd" },{ t: "ఈల పేట", m: "కత్తి పేట", s: "Crowd" },{ t: "వీధి", m: "Street", s: "Crowd" },{ t: "జల్ది", m: "తొందరగా", s: "Crowd" },{ t: "జింగిడి", m: "బర్రెల గుంపు", s: "Crowd" },{ t: "బాగమ్", m: "Exhibition", s: "Crowd" },{ t: "చలక", m: "Field", s: "Crowd" },{ t: "ఈల పేట", m: "కత్తి పేట", s: "Crowd" },{ t: "పాలమూరు", m: "Mahabubnagar", s: "Place" }, { t: "వలస", m: "Migration", s: "Social" },{ t: "కూలీ", m: "Laborer", s: "Social" }, { t: "అడ్డా", m: "Stand/Place", s: "Social" },{ t: "అప్ప", m: "Father", s: "Seema Infl." }, { t: "అయ్య", m: "Father", s: "General" },5 unmodified linesname: "Nagarkurnool", lat: 16.4856, lng: 78.3305, region: "Nallamalla Zone",history: "Covers the Nallamalla forest. Chenchu tribal words are part of the local mix.",words: [{ t: "అంబటాలు", m: "Morning meal time", s: "Crowd" },{ t: "మంకర", m: "Winter cold", s: "Crowd" },{ t: "లాడు", m: "తల్లి కూతురు", s: "Crowd" },{ t: "గెనిమ", m: "పొలం గట్టు", s: "Crowd" },{ t: "కోంత లోలు", m: "Old name for Nagar Kurnool", s: "Crowd" },{ t: "బుడ్డల నూనె", m: "పల్లి oil (Peanut oil)", s: "Crowd" },{ t: "అంబటాలు", m: "Morning meal time", s: "Crowd" },{ t: "మంకర", m: "Winter cold", s: "Crowd" },{ t: "లాడు", m: "తల్లి కూతురు", s: "Crowd" },{ t: "గెనిమ", m: "పొలం గట్టు", s: "Crowd" },{ t: "కోంత లోలు", m: "Old name for Nagar Kurnool", s: "Crowd" },{ t: "బుడ్డల నూనె", m: "పల్లి oil (Peanut oil)", s: "Crowd" },{ t: "నల్ల", m: "Black", s: "General" }, { t: "మళ్ళ", m: "Again", s: "General" },{ t: "కొండ", m: "Hill", s: "Geo" }, { t: "వాగు", m: "Stream", s: "Geo" },{ t: "చెంచు", m: "Tribe", s: "Community" }, { t: "తేనె", m: "Honey", s: "Forest" },5 unmodified linesname: "Wanaparthy", lat: 16.3621, lng: 78.0617, region: "Samsthanam",history: "A historic Samsthanam (Estate). The dialect reflects a feudal/royal past.",words: [{ t: "చెప్పలకాయలు", m: "గొంకరకాయలు", s: "Crowd" },{ t: "మలంచా", m: "చెంబు", s: "Crowd" },{ t: "సొరకాయ", m: "ఆనకాయ", s: "Crowd" },{ t: "పాశాల", m: "Clothes", s: "Crowd" },{ t: "మట్టుగుండు", m: "Keep calm", s: "Crowd" },{ t: "అంబరుంది", m: "Excellent", s: "Crowd" },{ t: "చెప్పలకాయలు", m: "గొంకరకాయలు", s: "Crowd" },{ t: "మలంచా", m: "చెంబు", s: "Crowd" },{ t: "సొరకాయ", m: "ఆనకాయ", s: "Crowd" },{ t: "పాశాల", m: "Clothes", s: "Crowd" },{ t: "మట్టుగుండు", m: "Keep calm", s: "Crowd" },{ t: "అంబరుంది", m: "Excellent", s: "Crowd" },{ t: "సంస్థానం", m: "Estate", s: "History" }, { t: "రాజా", m: "King", s: "History" },{ t: "కోట", m: "Fort", s: "History" }, { t: "బంగారు", m: "Golden", s: "General" },{ t: "పట్టు", m: "Silk", s: "Textile" }, { t: "చీర", m: "Saree", s: "Textile" },5 unmodified linesname: "Jogulamba Gadwal", lat: 16.2343, lng: 77.7289, region: "River Doab",history: "Between Krishna and Tungabhadra rivers. Known for Handlooms and temples.",words: [{ t: "ఓల్లి", m: "No", s: "Crowd" },{ t: "కూడు తింటవా", m: "తిన్నారా", s: "Crowd" },{ t: "తువ్వ", m: "ఎర్ర పొలం", s: "Crowd" },{ t: "పురకోస", m: "జూట్ దార", s: "Crowd" },{ t: "జుముజలమ్మ", m: "దేవత", s: "Crowd" },{ t: "తలుగు ఎల్లమ్మ", m: "దేవత", s: "Crowd" },{ t: "తెల్వది", m: "Don\'t know", s: "Crowd" },{ t: "మడసంగ", m: "నెమ్మదిగా/జాగ్రత్తగా", s: "Crowd" },{ t: "రప్పున", m: "జల్ది", s: "Crowd" },{ t: "మడసంగ", m: "Careful", s: "Crowd" },{ t: "ఓల్లి", m: "No", s: "Crowd" },{ t: "కూడు తింటవా", m: "తిన్నారా", s: "Crowd" },{ t: "తువ్వ", m: "ఎర్ర పొలం", s: "Crowd" },{ t: "పురకోస", m: "జూట్ దార", s: "Crowd" },{ t: "జుముజలమ్మ", m: "దేవత", s: "Crowd" },{ t: "తలుగు ఎల్లమ్మ", m: "దేవత", s: "Crowd" },{ t: "తెల్వది", m: "Don\'t know", s: "Crowd" },{ t: "మడసంగ", m: "నెమ్మదిగా/జాగ్రత్తగా", s: "Crowd" },{ t: "రప్పున", m: "జల్ది", s: "Crowd" },{ t: "మడసంగ", m: "Careful", s: "Crowd" },{ t: "నడుము", m: "Waist/Middle", s: "Body" }, { t: "గడ్డ", m: "Land/Bank", s: "Geo" },{ t: "కృష్ణ", m: "River", s: "Geo" }, { t: "తుంగభద్ర", m: "River", s: "Geo" },{ t: "పదిహేను", m: "Fifteen", s: "Standard" }, { t: "పదహైదు", m: "Fifteen", s: "Local" },5 unmodified linesname: "Narayanpet", lat: 16.7323, lng: 77.4988, region: "Karnataka Border",history: "Strong Kannada influence due to location. Cuisine terms (Rotti) are common.",words: [{ t: "బుబ్బి", m: "అమ్మ", s: "Crowd" },{ t: "పడం", m: "మట్టి", s: "Crowd" },{ t: "చెముక్కలు", m: "మోకాళ్ళు", s: "Crowd" },{ t: "మొర", m: "మంచం", s: "Crowd" },{ t: "అబుత", m: "జుట్టు", s: "Crowd" },{ t: "జేజి", m: "Fat", s: "Crowd" },{ t: "��ంబలి", m: "జావ", s: "Crowd" },{ t: "బుబ్బి", m: "అమ్మ", s: "Crowd" },{ t: "పడం", m: "మట్టి", s: "Crowd" },{ t: "చెముక్కలు", m: "మోకాళ్ళు", s: "Crowd" },{ t: "మొర", m: "మంచం", s: "Crowd" },{ t: "అబుత", m: "జుట్టు", s: "Crowd" },{ t: "జేజి", m: "Fat", s: "Crowd" },{ t: "అంబలి", m: "జావ", s: "Crowd" },{ t: "పేట", m: "Town", s: "Suffix" }, { t: "చీర", m: "Saree", s: "Textile" },{ t: "మగ్గ", m: "Loom", s: "Textile" }, { t: "బోర్డర్", m: "Border", s: "Geo" },{ t: "కన్నడ", m: "Language", s: "Influence" }, { t: "రొట్టి", m: "Bread", s: "Food" },5 unmodified linesname: "Nalgonda", lat: 17.0577, lng: 79.2683, region: "Southern Plains",history: "Known for the Nalgonda movement. Dialect is direct, sharp, and iconic.",words: [{ t: "Dupa aithundhi", m: "దాహం వేస్తుంది", s: "Crowd" },{ t: "సేరు", m: "1kg measuring device", s: "Crowd" },{ t: "Kurdedu Biyam", m: "Amount of rice", s: "Crowd" },{ t: "Anglam dundu", m: "అగ్గి పెట్టె", s: "Crowd" },{ t: "సది", m: "Take the box", s: "Crowd" },{ t: "తట్ట", m: "పళ్ళెం", s: "Crowd" },{ t: "కోవెల", m: "గుడి", s: "Crowd" },{ t: "ఊసలు", m: "Weaving technique", s: "Crowd" },{ t: "బువ్వ", m: "Cooked rice", s: "Crowd" },{ t: "తవాచీ", m: "Shelf with doors", s: "Crowd" },{ t: "తపుకు", m: "Plate on vessel", s: "Crowd" },{ t: "లడ్లు", m: "అరిసెలు", s: "Crowd" },{ t: "దారి", m: "బాట", s: "Crowd" },{ t: "Dupa aithundhi", m: "దాహం వేస్తుంది", s: "Crowd" },{ t: "సేరు", m: "1kg measuring device", s: "Crowd" },{ t: "Kurdedu Biyam", m: "Amount of rice", s: "Crowd" },{ t: "Anglam dundu", m: "అగ్గి పెట్టె", s: "Crowd" },{ t: "సది", m: "Take the box", s: "Crowd" },{ t: "తట్ట", m: "పళ్ళెం", s: "Crowd" },{ t: "కోవెల", m: "గుడి", s: "Crowd" },{ t: "ఊసలు", m: "Weaving technique", s: "Crowd" },{ t: "బువ్వ", m: "Cooked rice", s: "Crowd" },{ t: "తవాచీ", m: "Shelf with doors", s: "Crowd" },{ t: "తపుకు", m: "Plate on vessel", s: "Crowd" },{ t: "లడ్లు", m: "అరిసెలు", s: "Crowd" },{ t: "దారి", m: "బాట", s: "Crowd" },{ t: "నల్ల", m: "Black", s: "General" }, { t: "కొండ", m: "Hill", s: "Geo" },{ t: "ఫ్లోరోసిస్", m: "Disease", s: "History" }, { t: "నీళ్ళు", m: "Water", s: "General" },{ t: "బావి", m: "Well", s: "Agri" }, { t: "ఏడ", m: "Where", s: "Grammar" },28 unmodified linesname: "Medak", lat: 18.0487, lng: 78.2657, region: "Heritage West",history: "Historical seat of power. 'Metuku' (rice grain) is the etymological root.",words: [{ t: "కీసా", m: "జేబు", s: "Crowd" },{ t: "పైను", m: "ఆరు (Six)", s: "Crowd" },{ t: "కీసా", m: "జేబు", s: "Crowd" },{ t: "పైను", m: "ఆరు (Six)", s: "Crowd" },{ t: "చర్చి", m: "Church", s: "Landmark" }, { t: "మెతుకు", m: "Rice Grain", s: "Etymology" },{ t: "దుర్గం", m: "Fort", s: "History" }, { t: "కోట", m: "Fort", s: "History" },{ t: "గడి", m: "Room", s: "Rural" }, { t: "సింహ", m: "Lion", s: "Art" },16 unmodified linesname: "Siddipet", lat: 18.1018, lng: 78.8520, region: "Political Hub",history: "A vibrant, politically active district. Home to Komuravelli Mallanna.",words: [{ t: "అంగీ", m: "Shirt", s: "Crowd" },{ t: "పొయ్యిర్రు", m: "వెళ్ళారు", s: "Crowd" },{ t: "మెగులుతుంది", m: "వర్షం వచ్���ి ఆగిన", s: "Crowd" },{ t: "అలుకురు", m: "Pre cultivation", s: "Crowd" },{ t: "పయిలం", m: "జాగ్రత్త", s: "Crowd" },{ t: "తప్పెలు", m: "Rice plate", s: "Crowd" },{ t: "పందిట్లు", m: "పందిరి", s: "Crowd" },{ t: "రాకొచ్చింది", m: "రాదు", s: "Crowd" },{ t: "పోకొచ్చింది", m: "పోదు", s: "Crowd" },{ t: "కుకో", m: "కూర్చో", s: "Crowd" },{ t: "ఏడారు", m: "Afternoon time", s: "Crowd" },{ t: "అంగీ", m: "Shirt", s: "Crowd" },{ t: "పొయ్యిర్రు", m: "వెళ్ళారు", s: "Crowd" },{ t: "మెగులుతుంది", m: "వర్షం వచ్చి ఆగిన", s: "Crowd" },{ t: "అలుకురు", m: "Pre cultivation", s: "Crowd" },{ t: "పయిలం", m: "జాగ్రత్త", s: "Crowd" },{ t: "తప్పెలు", m: "Rice plate", s: "Crowd" },{ t: "పందిట్లు", m: "పందిరి", s: "Crowd" },{ t: "రాకొచ్చింది", m: "రాదు", s: "Crowd" },{ t: "పోకొచ్చింది", m: "పోదు", s: "Crowd" },{ t: "కుకో", m: "కూర్చో", s: "Crowd" },{ t: "ఏడారు", m: "Afternoon time", s: "Crowd" },{ t: "కోటి", m: "Monkey", s: "Local" }, { t: "మల్లన్న", m: "God Name", s: "Religion" },{ t: "పట్నం", m: "City", s: "General" }, { t: "చెరువు", m: "Lake", s: "Geo" },{ t: "బతుకమ్మ", m: "Festival", s: "Culture" }, { t: "పూలు", m: "Flowers", s: "Nature" },5 unmodified linesname: "Rangareddy", lat: 17.3457, lng: 78.5522, region: "Peri-Urban",history: "Surrounds Hyderabad. Mix of rural farms and real estate boom vocabulary.",words: [{ t: "వీరునో", m: "తెలుగు", s: "Crowd" },{ t: "తొక్కుడు", m: "మంచం", s: "Crowd" },{ t: "మూర", m: "ముంగిలి", s: "Crowd" },{ t: "కారం", m: "పచ్చడి", s: "Crowd" },{ t: "ఈ గడ", m: "కడ", s: "Crowd" },{ t: "వీరునో", m: "తెలుగు", s: "Crowd" },{ t: "తొక్కుడు", m: "మంచం", s: "Crowd" },{ t: "మూర", m: "ముంగిలి", s: "Crowd" },{ t: "కారం", m: "పచ్చడి", s: "Crowd" },{ t: "ఈ గడ", m: "కడ", s: "Crowd" },{ t: "ఎయిర్పోర్ట్", m: "Airport", s: "Infra" }, { t: "ఫ్లైట్", m: "Plane", s: "Transport" },{ t: "రియల్ ఎస్టేట్", m: "Land Biz", s: "Biz" }, { t: "ప్లాట్", m: "Plot", s: "Biz" },{ t: "రేటు", m: "Price", s: "Biz" }, { t: "మచ్చ", m: "Friend", s: "Slang" },27 unmodified linesname: "Hyderabad", lat: 17.3850, lng: 78.4867, region: "Capital",history: "The historic capital. Famous for the unique Dakhni-Telugu fusion dialect.",words: [{ t: "కిటికీ", m: "Window", s: "Crowd" },{ t: "అంగీ", m: "Shirt", s: "Crowd" },{ t: "కుక్క", m: "Dog", s: "Crowd" },{ t: "కుర్చీ", m: "Chair", s: "Crowd" },{ t: "Amma buvva pettava", m: "Mother feed me", s: "Crowd" },{ t: "Chaderghat", m: "Location", s: "Crowd" },{ t: "తొవ్వ దారి", m: "Way/Path", s: "Crowd" },{ t: "పాతాళగరిసె", m: "Tool to remove bucket", s: "Crowd" },{ t: "అంబటాలు", m: "Afternoon time", s: "Crowd" },{ t: "ఇన్సురాయి", m: "Stone tool", s: "Crowd" },{ t: "బుక్కెట్", m: "Tool for well", s: "Crowd" },{ t: "కిటికీ", m: "Window", s: "Crowd" },{ t: "అంగీ", m: "Shirt", s: "Crowd" },{ t: "కుక్క", m: "Dog", s: "Crowd" },{ t: "కుర్చీ", m: "Chair", s: "Crowd" },{ t: "Amma buvva pettava", m: "Mother feed me", s: "Crowd" },{ t: "Chaderghat", m: "Location", s: "Crowd" },{ t: "తొవ్వ దారి", m: "Way/Path", s: "Crowd" },{ t: "పాతాళగరిసె", m: "Tool to remove bucket", s: "Crowd" },{ t: "అంబటాలు", m: "Afternoon time", s: "Crowd" },{ t: "ఇన్సురాయి", m: "Stone tool", s: "Crowd" },{ t: "బుక్కెట్", m: "Tool for well", s: "Crowd" },{ t: "కైకు", m: "Why", s: "Dakhni" }, { t: "నక్కో", m: "No", s: "Dakhni" },{ t: "హౌ", m: "Yes", s: "Dakhni" }, { t: "బైగన్", m: "Useless", s: "Slang" },{ t: "చిచ్చా", m: "Uncle", s: "Slang" }, { t: "పోట్టి", m: "Girl", s: "Slang" },3 unmodified lines}];// --- 1.5. DYNAMIC DATA LOADING & MERGING ---// AP District Coordinate Mappingconst AP_COORDINATES = {"Alluri Sitharama Raju": { "lat": 17.7000, "lng": 81.9000, "region": "Coastal Andhra", "history": "Named after the legendary freedom fighter; a hub of tribal culture and the Rampa Rebellion." },"Anakapalli": { "lat": 17.6913, "lng": 83.0039, "region": "Coastal Andhra", "history": "Historical Buddhist site (Bojjanakonda) and a major center for the jaggery trade." },"Anantapur": { "lat": 14.6856, "lng": 77.6006, "region": "Rayalaseema", "history": "Ancient cultural zone with Kannada and Marathi influences; home to the Gooty Fort." },"Annamayya": { "lat": 13.9744, "lng": 78.9647, "region": "Rayalaseema", "history": "Named after the saint-poet Tallapaka Annamacharya; rich in spiritual and forest heritage." },"Bapatla": { "lat": 15.9045, "lng": 80.4682, "region": "Coastal Andhra", "history": "Known for its historical Suryalanka beach and prominent educational institutions since the British era." },"Chittoor": { "lat": 13.2172, "lng": 79.1003, "region": "Rayalaseema", "history": "A major gateway to South India with deep links to the Vijayanagara Empire." },"Dr. B.R. Ambedkar Konaseema": { "lat": 16.6360, "lng": 81.9961, "region": "Coastal Andhra", "history": "The 'Kerala of Andhra'; a lush delta region known for Vedic culture and coconut groves." },"East Godavari": { "lat": 17.0005, "lng": 81.7729, "region": "Coastal Andhra", "history": "The rice bowl of AP; historically a cultural epicenter of the Telugu language." },"Eluru": { "lat": 16.7107, "lng": 81.1018, "region": "Coastal Andhra", "history": "Former Buddhist center and capital of the Vengi dynasty." },"Guntur": { "lat": 16.3067, "lng": 80.4365, "region": "Coastal Andhra", "history": "Ancient seat of learning (Amaravati) and a global hub for the spice trade." },"Kakinada": { "lat": 16.9891, "lng": 82.2475, "region": "Coastal Andhra", "history": "Known as the 'Pensioner's Paradise'; a key port city during the Dutch and British eras." },"Konaseema": { "lat": 16.5000, "lng": 82.0000, "region": "Coastal Andhra", "history": "Famous for its lush greenery and traditional Brahminical scholarship." },"Krishna": { "lat": 16.1800, "lng": 81.1300, "region": "Coastal Andhra", "history": "Named after the sacred river; the heartland of the Kuchipudi dance form." },"Kurnool": { "lat": 15.8281, "lng": 78.0373, "region": "Rayalaseema", "history": "The first capital of Andhra State (1953-1956) and home to the Konda Reddy Fort." },"Nandyal": { "lat": 15.4811, "lng": 78.4862, "region": "Rayalaseema", "history": "Surrounded by the 'Nava Nandulu' temples and a gateway to the Nallamala forests." },"NTR": { "lat": 16.5062, "lng": 80.6480, "region": "Coastal Andhra", "history": "Named after the legendary actor-politician N.T. Rama Rao; encompasses the bustling city of Vijayawada." },"Palnadu": { "lat": 16.2900, "lng": 79.9100, "region": "Coastal Andhra", "history": "Famous for the historic 'Battle of Palnadu' often compared to the Mahabharata." },"Parvathipuram Manyam": { "lat": 18.7781, "lng": 83.4219, "region": "Coastal Andhra", "history": "A tribal-dominated hill region with rich folk traditions and forest history." },"Prakasam": { "lat": 15.5057, "lng": 80.0493, "region": "Coastal Andhra", "history": "Named after Tanguturi Prakasam Pantulu; contains ancient Buddhist sites and Motupalli port." },"Sri Potti Sriramulu Nellore": { "lat": 14.4426, "lng": 79.9865, "region": "Coastal Andhra", "history": "Home to the Satish Dhawan Space Centre and historically famous for its mica mines." },"Sri Sathya Sai": { "lat": 14.1670, "lng": 77.8111, "region": "Rayalaseema", "history": "Named after the spiritual leader Sathya Sai Baba; includes the spiritual hub of Puttaparthi." },"Srikakulam": { "lat": 18.2949, "lng": 83.8938, "region": "Coastal Andhra", "history": "Ancient land of the Kalinga Empire with prominent sun temples and Buddhist ruins." },"Tirupati": { "lat": 13.6288, "lng": 79.4192, "region": "Rayalaseema", "history": "The spiritual capital of AP; home to the world-famous Lord Venkateswara Temple." },"Visakhapatnam": { "lat": 17.6868, "lng": 83.2185, "region": "Coastal Andhra", "history": "A major naval center and historical port known as the 'City of Destiny'." },"Vizianagaram": { "lat": 18.1124, "lng": 83.3956, "region": "Coastal Andhra", "history": "Meaning 'City of Victory'; historically ruled by the Pusapati Rajas." },"West Godavari": { "lat": 16.7110, "lng": 81.5230, "region": "Coastal Andhra", "history": "A prosperous agricultural region known for its extensive canal system and Kolleru Lake." },"YSR Kadapa": { "lat": 14.4673, "lng": 78.8242, "region": "Rayalaseema", "history": "Heart of the Rayalaseema region; home to the Gandikota canyon and rich mineral deposits." }};async function loadAndMergeDynamicData() {try {// Load processed_dialects.jsonconst response1 = await fetch('data/processed/processed_dialects.json');if (response1.ok) {const dynamicDistricts = await response1.json();console.log(`✓ Loaded ${dynamicDistricts.length} districts from processed_dialects.json`);dynamicDistricts.forEach(dynamicDistrict => {const existingDistrict = dialectData.find(d => d.name === dynamicDistrict.name);if (existingDistrict) {console.log(` → Enhancing ${dynamicDistrict.name} with ${dynamicDistrict.words.length} additional words`);existingDistrict.words = [...existingDistrict.words, ...dynamicDistrict.words];} else {console.log(` → Adding new district: ${dynamicDistrict.name} with ${dynamicDistrict.words.length} words`);dialectData.push(dynamicDistrict);}});}// Load digiwords_grouped.jsonconst response2 = await fetch('data/processed/digiwords_grouped.json');if (response2.ok) {const digiwords = await response2.json();// Process both Telangana and Andhra Pradesh districts['Telangana', 'Andhra Pradesh'].forEach(state => {const stateDistricts = digiwords[state] || {};console.log(`\n✓ Processing ${Object.keys(stateDistricts).length} districts from ${state}`);Object.entries(stateDistricts).forEach(([districtName, wordsArray]) => {const existingDistrict = dialectData.find(d => d.name === districtName);if (existingDistrict) {// Merge words into existing districtconsole.log(` → Merging ${wordsArray.length} words into ${districtName}`);existingDistrict.words = [...existingDistrict.words, ...wordsArray];} else {// Create new district for AP (Telangana districts should already exist)const coords = AP_COORDINATES[districtName];if (coords) {const newDistrict = {name: districtName,lat: coords.lat,lng: coords.lng,region: coords.region,history: coords.history,words: wordsArray};console.log(` → Adding new AP district: ${districtName} with ${wordsArray.length} words`);dialectData.push(newDistrict);} else {console.warn(` ⚠ Skipping ${districtName}: No coordinates found`);}}});});}console.log(`\n✅ Total districts loaded: ${dialectData.length}`);} catch (error) {console.error('Error loading dynamic data:', error);console.log('Continuing with hardcoded data only.');}}// --- 2. MAP SETUP ---// Initialize map after data is loadedlet map;async function initializeMap() {// Load dynamic data firstawait loadAndMergeDynamicData();// Update district counterconst telanganaCount = dialectData.filter(d => !AP_COORDINATES[d.name]).length;const apCount = dialectData.filter(d => AP_COORDINATES[d.name]).length;document.getElementById('district-counter').textContent =`Telangana: ${telanganaCount} • Andhra Pradesh: ${apCount} • Total: ${dialectData.length} Districts`;// Center map to show both Telangana and Andhra Pradeshmap = L.map('map').setView([16.5, 79.8], 6.5);L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {attribution: '© OSM contributors'}).addTo(map);// --- 3. MARKERS & INTERACTION ---const sidebarPanel = document.getElementById('info-panel');// Red Marker Styleconst redIcon = L.divIcon({className: 'custom-marker',html: '📍',iconSize: [30, 30],iconAnchor: [15, 30]});dialectData.forEach(d => {const marker = L.marker([d.lat, d.lng], { icon: redIcon }).addTo(map);// Hover Labelmarker.bindTooltip(`<b>${d.name}</b>`, { direction: 'top', offset: [0, -5] });// Click Actionmarker.on('click', () => {map.flyTo([d.lat, d.lng], 9, { duration: 1.2 });updateSidebar(d);});});function updateSidebar(data) {const rows = data.words.map(w => `<tr><td class="telugu-word">${w.t}</td><td>${w.m}</td><td style="color:#777; font-size:0.7rem;">${w.s}</td></tr>`).join('');sidebarPanel.innerHTML = `<div style="animation:fadeIn 0.4s;"><h2 class="district-title">${data.name}</h2><span class="region-tag">${data.region}</span>4 unmodified lines</table></div>`;}}// Start the applicationinitializeMap();</script></body>3 unmodified lines45678910111 unmodified lines12212312412512612712812913013113213313413513613713813914023 unmodified lines1641651661671681691701719 unmodified lines18118218318418518618718818919019119219319439 unmodified lines23423523623723823917 unmodified lines25725825926026126216 unmodified lines27928028128228328417 unmodified lines30230330430530630716 unmodified lines32432532632732832916 unmodified lines34634734834935035139 unmodified lines3913923933943953965 unmodified lines4024034044054064075 unmodified lines4134144154164174185 unmodified lines4244254264274284295 unmodified lines4354364374384394405 unmodified lines44644744844945045128 unmodified lines48048148248348448516 unmodified lines5025035045055065075 unmodified lines51351451551651751827 unmodified lines5465475485495505513 unmodified lines555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010914 unmodified lines10961097109810991100110111023 unmodified lines<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Telugu States Digital Dialect Map</title><link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />111 unmodified linesfont-size: 0.95rem;}/* Hyperlink Styles */.source-link {color: #3498db;text-decoration: none;font-size: 0.75rem;border-bottom: 1px dotted #3498db;}.source-link:hover {color: #2980b9;border-bottom: 1px solid #2980b9;}#map {flex-grow: 1;height: 100%;23 unmodified lines<div id="sidebar"><div class="header"><h1>Telugu States Dialect Map</h1><p>Verified Data • Telangana & Andhra Pradesh</p></div><div id="info-panel"><div style="text-align: center; color: #888; margin-top: 60px;">9 unmodified linesintegrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script><script>// --- 1. THE DATA ---const Telangana_Data = [// === NORTHERN TELANGANA ==={name: "Adilabad", lat: 19.6641, lng: 78.5320, region: "Northern Forest",history: "Heavily influenced by Gondi tribal dialects and Marathi due to the Maharashtra border.",words: [{ t: "కోయంగ్", m: "Dialect/Language", s: "Gondi" }, { t: "పైలం", m: "Careful", s: "Mandalikalu" },{ t: "ఆడ", m: "There", s: "General" }, { t: "కాకా", m: "Uncle", s: "Marathi Infl." },{ t: "పటేల్", m: "Village Head", s: "Tribal" }, { t: "గూడ", m: "Hamlet", s: "Rural" },39 unmodified linesname: "Nizamabad", lat: 18.6725, lng: 78.0941, region: "Indur Agrarian",history: "Rich agricultural zone (Turmeric). Strong Dakhni Urdu influence from the Nizam era.",words: [{ t: "పసుపు", m: "Turmeric", s: "Agri" }, { t: "ఐగలు", m: "Priest", s: "Mandalikalu" },{ t: "హామీ", m: "Assurance", s: "Urdu Infl." }, { t: "జీరా", m: "Boundary", s: "Agri" },{ t: "పుంటికూర", m: "Gongura", s: "Food" }, { t: "అంగడి", m: "Shop", s: "Rural" },17 unmodified linesname: "Karimnagar", lat: 18.4386, lng: 79.1288, region: "Cultural Core",history: "Considered the standard for 'Telangana Slang' in media. Sharp, distinct pronunciation.",words: [{ t: "తోపు", m: "Great/Top", s: "Slang" }, { t: "కేక", m: "Super", s: "Slang" },{ t: "లొల్లి", m: "Fight/Noise", s: "General" }, { t: "శాన", m: "Very", s: "Mandalikalu" },{ t: "పైసల్", m: "Money", s: "General" }, { t: "గత్తర", m: "Mess", s: "Slang" },16 unmodified linesname: "Peddapalli", lat: 18.6146, lng: 79.3705, region: "Industrial Hub",history: "Home to NTPC and Coal mines. Vocabulary is a mix of rural and industrial English loan words.",words: [{ t: "బొగ్గు", m: "Coal", s: "Mining" }, { t: "కరెంట్", m: "Power", s: "Utility" },{ t: "క్వార్టర్", m: "Housing", s: "Industry" }, { t: "షిఫ్ట్", m: "Work Shift", s: "Labor" },{ t: "గేట్", m: "Entrance", s: "General" }, { t: "పోరడు", m: "Boy", s: "General" },17 unmodified linesname: "Warangal", lat: 17.9689, lng: 79.5941, region: "Kakatiya Rural",history: "Historic Orugallu. Retains classical Telugu terms mixed with rural agricultural slang.",words: [{ t: "చెల్క", m: "Field", s: "Agri" }, { t: "గ���్డపార", m: "Crowbar", s: "Tools" },{ t: "నాగలి", m: "Plough", s: "Agri" }, { t: "ఎడ్లు", m: "Bulls", s: "Agri" },{ t: "పంట", m: "Crop", s: "Agri" }, { t: "ఎరువ", m: "Fertilizer", s: "Agri" },16 unmodified linesname: "Jangaon", lat: 17.7226, lng: 79.1685, region: "Central Junction",history: "A crossroads district. Famous for Jatharas and rural festivals.",words: [{ t: "గుట్ట", m: "Hillock", s: "Geo" }, { t: "జాతర", m: "Fair", s: "Culture" },{ t: "బోనం", m: "Offering", s: "Ritual" }, { t: "సాక", m: "Branch", s: "Nature" },{ t: "కోడి", m: "Chicken", s: "Food" }, { t: "మేక", m: "Goat", s: "Agri" },16 unmodified linesname: "Mahabubabad", lat: 17.5956, lng: 80.0053, region: "Tribal Corridor",history: "Strong Lambadi/Banjara tribal presence influences the local lexicon.",words: [{ t: "తండా", m: "Hamlet", s: "Tribal" }, { t: "బంజారా", m: "Tribe", s: "Community" },{ t: "గూడు", m: "Nest/Hut", s: "General" }, { t: "తవ్వు", m: "Dig", s: "Action" },{ t: "పాట", m: "Song", s: "Culture" }, { t: "ఆట", m: "Dance/Play", s: "Culture" },39 unmodified linesname: "Mahabubnagar", lat: 16.7488, lng: 78.0035, region: "Palamuru",history: "Palamuru region. Known for migration (Valasa) and distinct, rougher intonation.",words: [{ t: "పాలమూరు", m: "Mahabubnagar", s: "Place" }, { t: "వలస", m: "Migration", s: "Social" },{ t: "కూలీ", m: "Laborer", s: "Social" }, { t: "అడ్డా", m: "Stand/Place", s: "Social" },{ t: "అప్ప", m: "Father", s: "Seema Infl." }, { t: "అయ్య", m: "Father", s: "General" },5 unmodified linesname: "Nagarkurnool", lat: 16.4856, lng: 78.3305, region: "Nallamalla Zone",history: "Covers the Nallamalla forest. Chenchu tribal words are part of the local mix.",words: [{ t: "నల్ల", m: "Black", s: "General" }, { t: "మళ్ళ", m: "Again", s: "General" },{ t: "కొండ", m: "Hill", s: "Geo" }, { t: "వాగు", m: "Stream", s: "Geo" },{ t: "చెంచు", m: "Tribe", s: "Community" }, { t: "తేనె", m: "Honey", s: "Forest" },5 unmodified linesname: "Wanaparthy", lat: 16.3621, lng: 78.0617, region: "Samsthanam",history: "A historic Samsthanam (Estate). The dialect reflects a feudal/royal past.",words: [{ t: "సంస్థానం", m: "Estate", s: "History" }, { t: "రాజా", m: "King", s: "History" },{ t: "కోట", m: "Fort", s: "History" }, { t: "బంగారు", m: "Golden", s: "General" },{ t: "పట్టు", m: "Silk", s: "Textile" }, { t: "చీర", m: "Saree", s: "Textile" },5 unmodified linesname: "Jogulamba Gadwal", lat: 16.2343, lng: 77.7289, region: "River Doab",history: "Between Krishna and Tungabhadra rivers. Known for Handlooms and temples.",words: [{ t: "నడుము", m: "Waist/Middle", s: "Body" }, { t: "గడ్డ", m: "Land/Bank", s: "Geo" },{ t: "కృష్ణ", m: "River", s: "Geo" }, { t: "తుంగభద్ర", m: "River", s: "Geo" },{ t: "పదిహేను", m: "Fifteen", s: "Standard" }, { t: "పదహైదు", m: "Fifteen", s: "Local" },5 unmodified linesname: "Narayanpet", lat: 16.7323, lng: 77.4988, region: "Karnataka Border",history: "Strong Kannada influence due to location. Cuisine terms (Rotti) are common.",words: [{ t: "పేట", m: "Town", s: "Suffix" }, { t: "చీర", m: "Saree", s: "Textile" },{ t: "మగ్గ", m: "Loom", s: "Textile" }, { t: "బోర్డర్", m: "Border", s: "Geo" },{ t: "కన్నడ", m: "Language", s: "Influence" }, { t: "రొట్టి", m: "Bread", s: "Food" },5 unmodified linesname: "Nalgonda", lat: 17.0577, lng: 79.2683, region: "Southern Plains",history: "Known for the Nalgonda movement. Dialect is direct, sharp, and iconic.",words: [{ t: "నల్ల", m: "Black", s: "General" }, { t: "కొండ", m: "Hill", s: "Geo" },{ t: "ఫ్లోరోసిస్", m: "Disease", s: "History" }, { t: "నీళ్ళు", m: "Water", s: "General" },{ t: "బావి", m: "Well", s: "Agri" }, { t: "ఏడ", m: "Where", s: "Grammar" },28 unmodified linesname: "Medak", lat: 18.0487, lng: 78.2657, region: "Heritage West",history: "Historical seat of power. 'Metuku' (rice grain) is the etymological root.",words: [{ t: "చర్చి", m: "Church", s: "Landmark" }, { t: "మెతుకు", m: "Rice Grain", s: "Etymology" },{ t: "దుర్గం", m: "Fort", s: "History" }, { t: "కోట", m: "Fort", s: "History" },{ t: "గడి", m: "Room", s: "Rural" }, { t: "సింహ", m: "Lion", s: "Art" },16 unmodified linesname: "Siddipet", lat: 18.1018, lng: 78.8520, region: "Political Hub",history: "A vibrant, politically active district. Home to Komuravelli Mallanna.",words: [{ t: "కోటి", m: "Monkey", s: "Local" }, { t: "మల్లన్న", m: "God Name", s: "Religion" },{ t: "పట్నం", m: "City", s: "General" }, { t: "చెరువు", m: "Lake", s: "Geo" },{ t: "బతుకమ్మ", m: "Festival", s: "Culture" }, { t: "పూలు", m: "Flowers", s: "Nature" },5 unmodified linesname: "Rangareddy", lat: 17.3457, lng: 78.5522, region: "Peri-Urban",history: "Surrounds Hyderabad. Mix of rural farms and real estate boom vocabulary.",words: [{ t: "ఎయిర్పోర్ట్", m: "Airport", s: "Infra" }, { t: "ఫ్లైట్", m: "Plane", s: "Transport" },{ t: "రియల్ ఎస్టేట్", m: "Land Biz", s: "Biz" }, { t: "ప్లాట్", m: "Plot", s: "Biz" },{ t: "రేటు", m: "Price", s: "Biz" }, { t: "మచ్చ", m: "Friend", s: "Slang" },27 unmodified linesname: "Hyderabad", lat: 17.3850, lng: 78.4867, region: "Capital",history: "The historic capital. Famous for the unique Dakhni-Telugu fusion dialect.",words: [{ t: "కైకు", m: "Why", s: "Dakhni" }, { t: "నక్కో", m: "No", s: "Dakhni" },{ t: "హౌ", m: "Yes", s: "Dakhni" }, { t: "బైగన్", m: "Useless", s: "Slang" },{ t: "చిచ్చా", m: "Uncle", s: "Slang" }, { t: "పోట్టి", m: "Girl", s: "Slang" },3 unmodified lines}];const andhraData = [// === UTTARANDHRA REGION ==={name: "Srikakulam",lat: 18.2949, lng: 83.8938,region: "Kalingandhra",history: "Bordering Odisha, this dialect (Srikakulam Mandalikam) is distinct with 'Elugu' sounds and Odiya influence. It preserves archaic Telugu forms.",words: [{ t: "ఎలుగు", m: "Bear", s: "Local Usage", l: "https://en.wikipedia.org/wiki/Srikakulam_district" },{ t: "బయ", m: "Fear", s: "Mandalikalu", l: "https://archive.org/details/mandalikalu_vol1" },{ t: "కాడ", m: "Stalk/Stick", s: "Agri", l: "https://andhrabharati.com" },{ t: "మునగాకు", m: "Drumstick Leaf", s: "Food", l: "https://andhrabharati.com" },{ t: "పైడి", m: "Gold/Money", s: "Community", l: "https://en.wikipedia.org/wiki/Paidi" },{ t: "దొర", m: "Lord/Master", s: "Caste Title", l: "https://en.wikipedia.org/wiki/Velama" },{ t: "వలి", m: "Wind", s: "Nature", l: "https://andhrabharati.com" },{ t: "నీళ్ళు", m: "Water (Neellu)", s: "General", l: "https://andhrabharati.com" },{ t: "బువ్వ", m: "Rice", s: "Food", l: "https://andhrabharati.com" },{ t: "అమ్మోరు", m: "Goddess", s: "Religion", l: "https://en.wikipedia.org/wiki/Gramadevata" }]},{name: "Vizianagaram",lat: 18.1067, lng: 83.3956,region: "Kalingandhra",history: "A hub of education and culture (Vidyanagaram). The dialect is soft, musical, and heavily influenced by the Gajapati kingdom's history.",words: [{ t: "గెడ్డ", m: "Buffalo", s: "Rural", l: "https://andhrabharati.com" },{ t: "సరే", m: "Okay", s: "Common", l: "https://en.wiktionary.org/wiki/sare" },{ t: "ఆయ", m: "Yes", s: "Uttarandhra", l: "https://en.wiktionary.org/wiki/avunu" },{ t: "పులస", m: "Hilsa Fish", s: "Food", l: "https://en.wikipedia.org/wiki/Tenualosa_ilisha" },{ t: "తోట", m: "Garden/Farm", s: "Agri", l: "https://andhrabharati.com" },{ t: "అయ్య", m: "Father", s: "Relations", l: "https://andhrabharati.com" },{ t: "కోడి", m: "Chicken", s: "Food", l: "https://andhrabharati.com" },{ t: "పండుగ", m: "Festival", s: "Culture", l: "https://en.wikipedia.org/wiki/Sankranti" },{ t: "గుడి", m: "Temple", s: "Religion", l: "https://en.wikipedia.org/wiki/Hindu_temple" },{ t: "ఊరు", m: "Village", s: "General", l: "https://en.wikipedia.org/wiki/Village" }]},{name: "Parvathipuram Manyam",lat: 18.7800, lng: 83.4300,region: "Manyam (Tribal)",history: "Carved from Vizianagaram/Srikakulam. Heavily tribal (Savara/Jatapu) population. 'Manyam' refers to the forest/hill region.",words: [{ t: "బిరింద", m: "Family/Clan", s: "Savara Tribe", l: "http://s3-ap-southeast-1.amazonaws.com/ijmer/pdf/volume10/volume10-issue12(2)/1.pdf" },{ t: "గూడ", m: "Hamlet", s: "Savara/Jatapu", l: "http://s3-ap-southeast-1.amazonaws.com/ijmer/pdf/volume10/volume10-issue12(2)/1.pdf" },{ t: "సవర", m: "Tribe Name", s: "Community", l: "https://en.wikipedia.org/wiki/Sora_people" },{ t: "జాతాపు", m: "Tribe Name", s: "Community", l: "https://en.wikipedia.org/wiki/Jatapu" },{ t: "పోడు", m: "Shifting Culti.", s: "Agri", l: "https://en.wikipedia.org/wiki/Podu_(agriculture)" },{ t: "కొండ", m: "Hill", s: "Geo", l: "https://andhrabharati.com" },{ t: "ఏరు", m: "Stream", s: "Geo", l: "https://andhrabharati.com" },{ t: "వేట", m: "Hunt", s: "Tribal", l: "https://andhrabharati.com" },{ t: "విల్లు", m: "Bow", s: "Weapon", l: "https://andhrabharati.com" },{ t: "తేనె", m: "Honey", s: "Forest Produce", l: "https://andhrabharati.com" }]},{name: "Visakhapatnam",lat: 17.6868, lng: 83.2185,region: "Coastal Metro",history: "A cosmopolitan port city. The 'Vizag' dialect mixes Uttarandhra rural slang with English/Hindi industrial loan words.",words: [{ t: "యా", m: "What (Etla)", s: "Slang", l: "https://en.wikipedia.org/wiki/Visakhapatnam" },{ t: "మత్స్య", m: "Fish/Marine", s: "Fishing", l: "https://en.wikipedia.org/wiki/Fisheries" },{ t: "రేవు", m: "Port/Harbor", s: "Maritime", l: "https://en.wikipedia.org/wiki/Visakhapatnam_Port" },{ t: "షిప్పు", m: "Ship", s: "Industrial", l: "https://en.wikipedia.org/wiki/Hindustan_Shipyard" },{ t: "స్టీలు", m: "Steel", s: "Industrial", l: "https://en.wikipedia.org/wiki/Visakhapatnam_Steel_Plant" },{ t: "బీచ్", m: "Beach", s: "Tourism", l: "https://en.wikipedia.org/wiki/RK_Beach" },{ t: "కొండ", m: "Hill (Dolphin Nose)", s: "Geo", l: "https://en.wikipedia.org/wiki/Dolphin%27s_Nose" },{ t: "లోవ", m: "Valley", s: "Geo", l: "https://andhrabharati.com" },{ t: "సిటీ", m: "City", s: "Urban", l: "https://en.wikipedia.org/wiki/Smart_Cities_Mission" },{ t: "ఆంధ్రా", m: "Andhra Univ.", s: "Edu", l: "https://www.andhrauniversity.edu.in/" }]},{name: "Anakapalli",lat: 17.6913, lng: 83.0039,region: "North Coastal Rural",history: "Famous for its Jaggery market (Bellam). The dialect is typical rural Visakha, distinct from the urban port city.",words: [{ t: "బెల్లం", m: "Jaggery", s: "Trade", l: "https://en.wikipedia.org/wiki/Anakapalle#Economy" },{ t: "చెరకు", m: "Sugarcane", s: "Agri", l: "https://en.wikipedia.org/wiki/Sugarcane" },{ t: "సంత", m: "Market", s: "Trade", l: "https://en.wikipedia.org/wiki/Market" },{ t: "ఏటికొప్పాక", m: "Toy Town", s: "Craft", l: "https://en.wikipedia.org/wiki/Etikoppaka" },{ t: "బొమ్మ", m: "Toy", s: "Craft", l: "https://en.wikipedia.org/wiki/Etikoppaka_toys" },{ t: "లక్క", m: "Lacquer", s: "Craft", l: "https://en.wikipedia.org/wiki/Lac" },{ t: "నూకమ్మ", m: "Goddess", s: "Religion", l: "https://en.wikipedia.org/wiki/Nookambika_Temple" },{ t: "జాతర", m: "Fair", s: "Culture", l: "https://en.wikipedia.org/wiki/Jatra" },{ t: "ఏరు", m: "River (Sarada)", s: "Geo", l: "https://en.wikipedia.org/wiki/Sarada_River" },{ t: "రైతు", m: "Farmer", s: "Agri", l: "https://andhrabharati.com" }]},{name: "Alluri Sitharama Raju",lat: 18.0667, lng: 82.6500,region: "Agency/Tribal",history: "Named after the freedom fighter. Home to the Rampa Rebellion. Dialect is heavily influenced by Koya, Konda, and other tribal languages.",words: [{ t: "మన్యం", m: "Forest/Hill Area", s: "History", l: "https://en.wikipedia.org/wiki/Manyam_Rebellion" },{ t: "ఫితూరీ", m: "Rebellion", s: "History", l: "https://en.wikipedia.org/wiki/Rampa_Rebellion_of_1922" },{ t: "రాముడు", m: "Alluri (God)", s: "Legend", l: "https://en.wikipedia.org/wiki/Alluri_Sitarama_Raju" },{ t: "పోడు", m: "Shifting Agri", s: "Tribal", l: "https://en.wikipedia.org/wiki/Podu" },{ t: "కాఫీ", m: "Coffee", s: "Agri", l: "https://en.wikipedia.org/wiki/Araku_Valley_Coffee" },{ t: "లోయ", m: "Valley (Araku)", s: "Geo", l: "https://en.wikipedia.org/wiki/Araku_Valley" },{ t: "బొర్రా", m: "Cave/Hole", s: "Geo", l: "https://en.wikipedia.org/wiki/Borra_Caves" },{ t: "గిరిజన", m: "Tribal", s: "Admin", l: "https://en.wikipedia.org/wiki/Scheduled_Tribes_in_India" },{ t: "విల్లు", m: "Bow", s: "Weapon", l: "https://andhrabharati.com" },{ t: "బాణం", m: "Arrow", s: "Weapon", l: "https://andhrabharati.com" }]},// === GODAVARI REGION ==={name: "Kakinada",lat: 16.9891, lng: 82.2475,region: "East Godavari",history: "The 'Pensioner's Paradise'. Known for the distinct 'Aay' (Yes) and polite, drawn-out Godavari accent. Famous for Kaja.",words: [{ t: "కాజా", m: "Sweet", s: "Food", l: "https://en.wikipedia.org/wiki/Kakinada_Kaja" },{ t: "బాసు", m: "Boss (Friend)", s: "Slang", l: "https://en.wiktionary.org/wiki/boss" },{ t: "రేవు", m: "Port", s: "Marine", l: "https://en.wikipedia.org/wiki/Kakinada_Port" },{ t: "పిఠాపురం", m: "Place Name", s: "History", l: "https://en.wikipedia.org/wiki/Pithapuram" },{ t: "శక్తి", m: "Power (Peetham)", s: "Religion", l: "https://en.wikipedia.org/wiki/Puruhutika_Devi_Temple" },{ t: "బీచ్", m: "Beach", s: "Tourism", l: "https://en.wikipedia.org/wiki/Uppada_Beach" },{ t: "పట్టు", m: "Silk (Uppada)", s: "Textile", l: "https://en.wikipedia.org/wiki/Uppada_Jamdani_Sari" },{ t: "నౌక", m: "Boat/Ship", s: "Marine", l: "https://andhrabharati.com" },{ t: "వంట", m: "Cooking", s: "Culture", l: "https://andhrabharati.com" },{ t: "మర్యాద", m: "Respect", s: "Culture", l: "https://andhrabharati.com" }]},{name: "Dr. B.R. Ambedkar Konaseema",lat: 16.5794, lng: 81.9930,region: "Konaseema",history: "The Delta region. Extremely fertile, known for coconut groves and distinct river-island vocabulary like 'Lanka' and 'Revu'.",words: [{ t: "లంక", m: "Island", s: "Geo", l: "https://te.wikipedia.org/wiki/%E0%B0%97%E0%B1%8B%E0%B0%A6%E0%B0%BE%E0%B0%B5%E0%B0%B0%E0%B0%BF_%E0%B0%AF%E0%B0%BE%E0%B0%B8" },{ t: "రేవు", m: "River Bank", s: "Geo", l: "https://te.wikipedia.org/wiki/%E0%B0%97%E0%B1%8B%E0%B0%A6%E0%B0%BE%E0%B0%B5%E0%B0%B0%E0%B0%BF_%E0%B0%AF%E0%B0%BE%E0%B0%B8" },{ t: "కొబ్బరి", m: "Coconut", s: "Agri", l: "http://jaganalluri.blogspot.com/2010/10/konaseema-telugu-is-delta-located-in.html" },{ t: "డిబ్బ", m: "Mound/Islet", s: "Geo", l: "http://jaganalluri.blogspot.com/2010/10/konaseema-telugu-is-delta-located-in.html" },{ t: "ఆయ్", m: "Yes (Respectful)", s: "Slang", l: "http://jaganalluri.blogspot.com/2010/10/konaseema-telugu-is-delta-located-in.html" },{ t: "పంటి", m: "Raft/Ferry", s: "Transport", l: "http://jaganalluri.blogspot.com/2010/10/konaseema-telugu-is-delta-located-in.html" },{ t: "గోదారి", m: "Godavari", s: "Geo", l: "http://jaganalluri.blogspot.com/2010/10/konaseema-telugu-is-delta-located-in.html" },{ t: "అరిటాకు", m: "Banana Leaf", s: "Food", l: "https://andhrabharati.com" },{ t: "పూతరేకు", m: "Paper Sweet", s: "Food", l: "https://en.wikipedia.org/wiki/Pootharekulu" },{ t: "అన్నం", m: "Rice", s: "Food", l: "https://andhrabharati.com" }]},{name: "East Godavari",lat: 17.0005, lng: 81.8040,region: "Godavari",history: "Headquartered at Rajamahendravaram. Cultural capital of Andhra. Standard Telugu ('Grandhika') has strong roots here.",words: [{ t: "పుష్కర", m: "River Festival", s: "Culture", l: "https://en.wikipedia.org/wiki/Godavari_Pushkaralu" },{ t: "ఘాట్", m: "Bathing Steps", s: "Religion", l: "https://en.wikipedia.org/wiki/Ghat" },{ t: "ఆదికవి", m: "First Poet (Nannaya)", s: "Lit", l: "https://en.wikipedia.org/wiki/Nannayya" },{ t: "బ్యారేజ్", m: "Barrage", s: "Infra", l: "https://en.wikipedia.org/wiki/Dowleswaram_Barrage" },{ t: "నర్సరీ", m: "Plant Nursery", s: "Agri", l: "https://en.wikipedia.org/wiki/Kadiyam" },{ t: "పువ్వులు", m: "Flowers", s: "Agri", l: "https://en.wikipedia.org/wiki/Kadiyam" },{ t: "రోజా", m: "Rose", s: "Agri", l: "https://andhrabharati.com" },{ t: "రైలు", m: "Train (Bridge)", s: "Transport", l: "https://en.wikipedia.org/wiki/Godavari_Bridge" },{ t: "గోదావరి", m: "River", s: "Geo", l: "https://en.wikipedia.org/wiki/Godavari_River" },{ t: "సంస్కృతి", m: "Culture", s: "General", l: "https://andhrabharati.com" }]},{name: "West Godavari",lat: 16.5417, lng: 81.5233,region: "Godavari Delta",history: "Centered around Bhimavaram. Known for aquaculture (Prawns/Fish) and cockfights (Kodi Pandem) during Sankranti.",words: [{ t: "రొయ్యలు", m: "Prawns", s: "Aqua", l: "https://en.wikipedia.org/wiki/Aquaculture_in_India" },{ t: "చేపలు", m: "Fish", s: "Aqua", l: "https://en.wikipedia.org/wiki/Fish_farming" },{ t: "పందెం", m: "Bet/Race", s: "Culture", l: "https://en.wikipedia.org/wiki/Cockfight" },{ t: "సంక్రాంతి", m: "Harvest Fest", s: "Culture", l: "https://en.wikipedia.org/wiki/Sankranti" },{ t: "కోడి", m: "Rooster", s: "Culture", l: "https://en.wikipedia.org/wiki/Cockfight" },{ t: "బరి", m: "Arena", s: "Culture", l: "https://andhrabharati.com" },{ t: "కత్తి", m: "Knife (Cockfight)", s: "Tool", l: "https://andhrabharati.com" },{ t: "చెరువు", m: "Pond (Aqua)", s: "Agri", l: "https://en.wikipedia.org/wiki/Fish_pond" },{ t: "గట్టు", m: "Bund", s: "Geo", l: "https://andhrabharati.com" },{ t: "ఊరు", m: "Village", s: "General", l: "https://andhrabharati.com" }]},{name: "Eluru",lat: 16.7107, lng: 81.0952,region: "Kolleru Belt",history: "Between Krishna and Godavari. Home to Kolleru Lake. Famous for carpets and woolen piles.",words: [{ t: "కొల్లేరు", m: "Lake Name", s: "Geo", l: "https://en.wikipedia.org/wiki/Kolleru_Lake" },{ t: "పక్షులు", m: "Birds", s: "Nature", l: "https://en.wikipedia.org/wiki/Kolleru_Bird_Sanctuary" },{ t: "తివాచీ", m: "Carpet", s: "Craft", l: "https://en.wikipedia.org/wiki/Eluru#Economy" },{ t: "ఉన్ని", m: "Wool", s: "Material", l: "https://andhrabharati.com" },{ t: "ద్వారకా", m: "Tirumala (Little)", s: "Religion", l: "https://en.wikipedia.org/wiki/Dwaraka_Tirumala" },{ t: "గుడి", m: "Temple", s: "Religion", l: "https://andhrabharati.com" },{ t: "మొక్కు", m: "Vow", s: "Religion", l: "https://andhrabharati.com" },{ t: "లంక", m: "Island", s: "Geo", l: "https://andhrabharati.com" },{ t: "పొలము", m: "Field", s: "Agri", l: "https://andhrabharati.com" },{ t: "వరి", m: "Paddy", s: "Agri", l: "https://en.wikipedia.org/wiki/Paddy" }]},// === KRISHNA-GUNTUR REGION ==={name: "Krishna",lat: 16.1808, lng: 81.1303,region: "Krishna Delta",history: "Headquartered at Machilipatnam. Historic port town with Dutch/British influence. Famous for Kalamkari.",words: [{ t: "కలంకారీ", m: "Pen Art", s: "Art", l: "https://en.wikipedia.org/wiki/Kalamkari" },{ t: "బందరు", m: "Machilipatnam", s: "Place", l: "https://en.wikipedia.org/wiki/Machilipatnam" },{ t: "లడ్డు", m: "Sweet (Bandar)", s: "Food", l: "https://en.wikipedia.org/wiki/Bandar_Laddu" },{ t: "బీచ్", m: "Beach", s: "Tourism", l: "https://en.wikipedia.org/wiki/Manginapudi_Beach" },{ t: "కోట", m: "Fort (Dutch)", s: "History", l: "https://en.wikipedia.org/wiki/Machilipatnam#History" },{ t: "నగల", m: "Imitation Gold", s: "Craft", l: "https://en.wikipedia.org/wiki/Machilipatnam" },{ t: "డచ్", m: "Dutch", s: "History", l: "https://en.wikipedia.org/wiki/Dutch_Coromandel" },{ t: "ఓడరేవు", m: "Seaport", s: "Marine", l: "https://andhrabharati.com" },{ t: "చేనేత", m: "Handloom", s: "Craft", l: "https://andhrabharati.com" },{ t: "నది", m: "River", s: "Geo", l: "https://andhrabharati.com" }]},{name: "NTR",lat: 16.5062, lng: 80.6480,region: "Central Capital",history: "Vijayawada region. The political and commercial heart. Standard Telugu is spoken here but with a distinct speed.",words: [{ t: "బెజవాడ", m: "Vijayawada", s: "Place", l: "https://en.wikipedia.org/wiki/Vijayawada" },{ t: "దుర్గమ్మ", m: "Goddess", s: "Religion", l: "https://en.wikipedia.org/wiki/Kanaka_Durga_Temple" },{ t: "ప్రకాశం", m: "Barrage", s: "Infra", l: "https://en.wikipedia.org/wiki/Prakasam_Barrage" },{ t: "రైలు", m: "Train (Junction)", s: "Transport", l: "https://en.wikipedia.org/wiki/Vijayawada_Junction_railway_station" },{ t: "రాజధాని", m: "Capital", s: "Admin", l: "https://en.wikipedia.org/wiki/Amaravati" },{ t: "రాజకీయం", m: "Politics", s: "Society", l: "https://en.wikipedia.org/wiki/Politics_of_Andhra_Pradesh" },{ t: "వ్యాపారం", m: "Business", s: "Economy", l: "https://andhrabharati.com" },{ t: "కొండ", m: "Hill (Indrakeeladri)", s: "Geo", l: "https://en.wikipedia.org/wiki/Indrakeeladri" },{ t: "నది", m: "River (Krishna)", s: "Geo", l: "https://en.wikipedia.org/wiki/Krishna_River" },{ t: "ఆటో", m: "Auto", s: "Transport", l: "https://en.wikipedia.org/wiki/Auto_rickshaw" }]},{name: "Guntur",lat: 16.3067, lng: 80.4365,region: "Central Andhra",history: "Known for Chillies and Education. The dialect here is crisp and considered 'textbook' standard.",words: [{ t: "మిరప", m: "Chilli", s: "Agri", l: "https://en.wikipedia.org/wiki/Guntur_chilli" },{ t: "కారం", m: "Spicy", s: "Food", l: "https://andhrabharati.com" },{ t: "గోంగూర", m: "Sorrel Leaf", s: "Food", l: "https://en.wikipedia.org/wiki/Gongura" },{ t: "పచ్చడి", m: "Pickle", s: "Food", l: "https://en.wikipedia.org/wiki/South_Indian_pickle" },{ t: "పొగాకు", m: "Tobacco", s: "Agri", l: "https://en.wikipedia.org/wiki/Tobacco" },{ t: "యార్డు", m: "Market Yard", s: "Trade", l: "https://en.wikipedia.org/wiki/Guntur" },{ t: "జిన్నా", m: "Tower Name", s: "Landmark", l: "https://en.wikipedia.org/wiki/Jinnah_Tower" },{ t: "చదువు", m: "Education", s: "General", l: "https://andhrabharati.com" },{ t: "ఉప్పు", m: "Salt", s: "Food", l: "https://andhrabharati.com" },{ t: "రాళ్ళు", m: "Stones", s: "General", l: "https://andhrabharati.com" }]},{name: "Palnadu",lat: 16.2366, lng: 80.0515,region: "Palnadu",history: "Historic battlefield of Palnati Yuddham. Known for bravery and specific factional history. 'Pourusham' (Valor) is a key theme.",words: [{ t: "పౌరుషం", m: "Valor", s: "History", l: "https://en.wikipedia.org/wiki/Palnadu" },{ t: "యుద్ధం", m: "War", s: "History", l: "https://te.wikipedia.org/wiki/%E0%B0%AA%E0%B0%B2%E0%B1%8D%E0%B0%A8%E0%B0%BE%E0%B0%9F%E0%B0%BF_%E0%B0%AF%E0%B1%81%E0%B0%A6%E0%B1%8D%E0%B0%A7%E0%B0%82" },{ t: "బ్రహ్మనాయుడు", m: "Hero Name", s: "Legend", l: "https://en.wikipedia.org/wiki/Brahma_Naidu" },{ t: "నాగమ్మ", m: "Leader Name", s: "Legend", l: "https://en.wikipedia.org/wiki/Nayakuralu_Nagamma" },{ t: "కోడి", m: "Rooster (Fight)", s: "History", l: "https://en.wikipedia.org/wiki/Palnati_Yuddham_(1947_film)" },{ t: "బొంగరం", m: "Top (Game)", s: "Culture", l: "https://te.wikipedia.org/wiki/%E0%B0%AA%E0%B0%B2%E0%B1%8D%E0%B0%A8%E0%B0%BE%E0%B0%9F%E0%B0%BF_%E0%B0%AF%E0%B1%81%E0%B0%A6%E0%B1%8D%E0%B0%A7%E0%B0%82" },{ t: "సమరం", m: "Battle", s: "History", l: "https://te.wikipedia.org/wiki/%E0%B0%AA%E0%B0%B2%E0%B1%8D%E0%B0%A8%E0%B0%BE%E0%B0%9F%E0%B0%BF_%E0%B0%AF%E0%B1%81%E0%B0%A6%E0%B1%8D%E0%B0%A7%E0%B0%82" },{ t: "పల్నాడు", m: "Region", s: "Geo", l: "https://en.wikipedia.org/wiki/Palnadu_district" },{ t: "కత్తి", m: "Sword", s: "Weapon", l: "https://andhrabharati.com" },{ t: "రక్తం", m: "Blood", s: "General", l: "https://andhrabharati.com" }]},{name: "Bapatla",lat: 15.9038, lng: 80.4682,region: "Coastal Guntur",history: "Includes Chirala and Bapatla. Known for Weaving (Chirala) and Air Force Base. Coastal dialect.",words: [{ t: "చీరాల", m: "Place Name", s: "Geo", l: "https://en.wikipedia.org/wiki/Chirala" },{ t: "నేత", m: "Weaving", s: "Craft", l: "https://en.wikipedia.org/wiki/Chirala" },{ t: "బీచ్", m: "Beach (Suryalanka)", s: "Tourism", l: "https://en.wikipedia.org/wiki/Suryalanka_Beach" },{ t: "జీడిపప్పు", m: "Cashew", s: "Agri", l: "https://andhrabharati.com" },{ t: "ఇసుక", m: "Sand", s: "Geo", l: "https://andhrabharati.com" },{ t: "వాయుసేన", m: "Air Force", s: "Defense", l: "https://en.wikipedia.org/wiki/Suryalanka_Air_Force_Station" },{ t: "భావనారాయణ", m: "God Name", s: "Religion", l: "https://en.wikipedia.org/wiki/Bhavanarayana_Temple" },{ t: "గుడి", m: "Temple", s: "Religion", l: "https://andhrabharati.com" },{ t: "సముద్రం", m: "Sea", s: "Geo", l: "https://andhrabharati.com" },{ t: "పడవ", m: "Boat", s: "Marine", l: "https://andhrabharati.com" }]},{name: "Prakasam",lat: 15.5057, lng: 80.0499,region: "South Coastal",history: "Ongole is famous for its Bulls. The dialect is a transition between Guntur and Nellore.",words: [{ t: "గిత్త", m: "Bull", s: "Agri", l: "https://en.wikipedia.org/wiki/Ongole_cattle" },{ t: "ఒంగోలు", m: "Ongole", s: "Place", l: "https://en.wikipedia.org/wiki/Ongole" },{ t: "పాల", m: "Milk (Galaxy)", s: "Industry", l: "https://en.wikipedia.org/wiki/Dairy" },{ t: "గ్రానైట్", m: "Granite", s: "Industry", l: "https://en.wikipedia.org/wiki/Granite" },{ t: "బండ", m: "Rock", s: "Geo", l: "https://andhrabharati.com" },{ t: "పలక", m: "Slate (Markapur)", s: "Mining", l: "https://en.wikipedia.org/wiki/Markapur" },{ t: "అడవి", m: "Forest (Nallamala)", s: "Geo", l: "https://en.wikipedia.org/wiki/Nallamala_Hills" },{ t: "నీళ్లు", m: "Water", s: "General", l: "https://andhrabharati.com" },{ t: "వేట", m: "Hunt", s: "Action", l: "https://andhrabharati.com" },{ t: "రైతు", m: "Farmer", s: "Agri", l: "https://andhrabharati.com" }]},{name: "Sri Potti Sriramulu Nellore",lat: 14.4426, lng: 79.9865,region: "Nellore",history: "Distinct dialect ('Yeta' for 'Atu'). Famous for Ranganayaka Swamy and ISRO (Sriharikota). Transition to Tamil influence starts here.",words: [{ t: "ఏటి", m: "What (Yeti)", s: "Nellore Slang", l: "https://en.wikipedia.org/wiki/Nellore" },{ t: "చేప", m: "Fish", s: "Food", l: "https://en.wikipedia.org/wiki/Nellore#Economy" },{ t: "మందు", m: "Medicine", s: "General", l: "https://en.wikipedia.org/wiki/Anandaiah_COVID-19_Herbal_Cure" },{ t: "రాకెట్", m: "Rocket", s: "Science", l: "https://en.wikipedia.org/wiki/Satish_Dhawan_Space_Centre" },{ t: "చెరువు", m: "Lake (Pulicat)", s: "Geo", l: "https://en.wikipedia.org/wiki/Pulicat_Lake" },{ t: "పక్షి", m: "Bird (Flamingo)", s: "Nature", l: "https://en.wikipedia.org/wiki/Nelapattu_Bird_Sanctuary" },{ t: "పెన్న", m: "Penna River", s: "Geo", l: "https://en.wikipedia.org/wiki/Penna_River" },{ t: "వడ్లు", m: "Paddy", s: "Agri", l: "https://en.wikipedia.org/wiki/Rice" },{ t: "కారం", m: "Spicy", s: "Food", l: "https://andhrabharati.com" },{ t: "దోవ", m: "Way/Path", s: "Rural", l: "https://www.reddit.com/r/Dravidiology/comments/1cmmve7/nellorekurrapalli_telugu_swadesh_list/" }]},// === RAYALASEEMA REGION ==={name: "Kurnool",lat: 15.8281, lng: 78.0373,region: "Rayalaseema",history: "Gateway to Rayalaseema. Historic capital. Dialect uses 'Emappa' and has rougher intonations.",words: [{ t: "కొండ", m: "Reddy (Fort)", s: "History", l: "https://en.wikipedia.org/wiki/Konda_Reddy_Fort" },{ t: "బూర్జు", m: "Bastion", s: "History", l: "https://en.wikipedia.org/wiki/Konda_Reddy_Fort" },{ t: "అప్ప", m: "Friend/Father", s: "Slang", l: "https://www.quora.com/What-are-some-common-phrases-in-the-Rayalaseema-Dialect-of-Telugu" },{ t: "ఏమప్ప", m: "What man?", s: "Slang", l: "https://www.quora.com/What-are-some-common-phrases-in-the-Rayalaseema-Dialect-of-Telugu" },{ t: "కర్నూలు", m: "City Name", s: "Place", l: "https://en.wikipedia.org/wiki/Kurnool" },{ t: "తుంగభద్ర", m: "River", s: "Geo", l: "https://en.wikipedia.org/wiki/Tungabhadra_River" },{ t: "సంగం", m: "Confluence", s: "Geo", l: "https://en.wikipedia.org/wiki/Sangameswara_Temple,_Kurnool" },{ t: "రాళ్లు", m: "Stones", s: "Geo", l: "https://andhrabharati.com" },{ t: "పులుసు", m: "Stew", s: "Food", l: "https://andhrabharati.com" },{ t: "చేను", m: "Field", s: "Agri", l: "https://www.quora.com/What-are-some-common-phrases-in-the-Rayalaseema-Dialect-of-Telugu" }]},{name: "Nandyal",lat: 15.4849, lng: 78.4867,region: "Rayalaseema",history: "Splintered from Kurnool. Famous for Mahanandi and Agriculture. 'Nandi' (Bull) is central to its identity.",words: [{ t: "నంది", m: "Bull", s: "Religion", l: "https://en.wikipedia.org/wiki/Mahanandi" },{ t: "ఆలయం", m: "Temple", s: "Religion", l: "https://en.wikipedia.org/wiki/Mahanandi" },{ t: "నీరు", m: "Water", s: "General", l: "https://andhrabharati.com" },{ t: "మహానంది", m: "Place Name", s: "Geo", l: "https://en.wikipedia.org/wiki/Mahanandi" },{ t: "అడవి", m: "Forest", s: "Geo", l: "https://en.wikipedia.org/wiki/Nallamala_Hills" },{ t: "పులి", m: "Tiger", s: "Wildlife", l: "https://en.wikipedia.org/wiki/Nagarjunsagar-Srisailam_Tiger_Reserve" },{ t: "విత్తనాలు", m: "Seeds", s: "Agri", l: "https://en.wikipedia.org/wiki/Nandyal" },{ t: "పంట", m: "Crop", s: "Agri", l: "https://andhrabharati.com" },{ t: "కొండ", m: "Hill", s: "Geo", l: "https://andhrabharati.com" },{ t: "రైతు", m: "Farmer", s: "Agri", l: "https://andhrabharati.com" }]},{name: "Ananthapuramu",lat: 14.6819, lng: 77.6006,region: "Rayalaseema",history: "Driest region. Groundnut (Verusenaga) is the main crop. Dialect is distinct Rayalaseema.",words: [{ t: "వేరుశనగ", m: "Groundnut", s: "Agri", l: "https://en.wikipedia.org/wiki/Anantapur_district#Economy" },{ t: "కరవు", m: "Drought", s: "Climate", l: "https://en.wikipedia.org/wiki/Anantapur_district#Climate" },{ t: "సీమ", m: "Region", s: "Geo", l: "https://en.wikipedia.org/wiki/Rayalaseema" },{ t: "రాళ్లు", m: "Rocks", s: "Geo", l: "https://andhrabharati.com" },{ t: "పవన", m: "Wind", s: "Energy", l: "https://en.wikipedia.org/wiki/Wind_power_in_India" },{ t: "విద్యుత్", m: "Power", s: "Energy", l: "https://en.wikipedia.org/wiki/Solar_power_in_India" },{ t: "కోట", m: "Fort (Gooty)", s: "History", l: "https://en.wikipedia.org/wiki/Gooty_Fort" },{ t: "ట్యాంక్", m: "Tank", s: "Water", l: "https://en.wikipedia.org/wiki/Anantapur" },{ t: "పొలము", m: "Field", s: "Agri", l: "https://andhrabharati.com" },{ t: "లేపాక్షి", m: "Lepakshi", s: "Art", l: "https://en.wikipedia.org/wiki/Lepakshi" }]},{name: "Sri Sathya Sai",lat: 14.1683, lng: 77.8117,region: "Spiritual Rayalaseema",history: "Headquartered at Puttaparthi. Global influence due to Sathya Sai Baba. Vocabulary includes spiritual terms.",words: [{ t: "సాయి", m: "Sai Baba", s: "Religion", l: "https://en.wikipedia.org/wiki/Sathya_Sai_Baba" },{ t: "సేవ", m: "Service", s: "Religion", l: "https://www.sathyasai.org/resources/indic-glossary" },{ t: "భక్తి", m: "Devotion", s: "Religion", l: "https://www.sathyasai.org/resources/indic-glossary" },{ t: "ఆశ్రమం", m: "Ashram", s: "Place", l: "https://en.wikipedia.org/wiki/Prasanthi_Nilayam" },{ t: "విమానం", m: "Airport", s: "Transport", l: "https://en.wikipedia.org/wiki/Sri_Sathya_Sai_Airport" },{ t: "వైద్యం", m: "Medicine", s: "Health", l: "https://en.wikipedia.org/wiki/Sri_Sathya_Sai_Institute_of_Higher_Medical_Sciences,_Prasanthigram" },{ t: "ప్రశాంతి", m: "Peace", s: "Philosophy", l: "https://en.wikipedia.org/wiki/Prasanthi_Nilayam" },{ t: "నిలయం", m: "Abode", s: "Place", l: "https://en.wikipedia.org/wiki/Prasanthi_Nilayam" },{ t: "హారతి", m: "Offering", s: "Ritual", l: "https://www.sathyasai.org/resources/indic-glossary" },{ t: "దర్శనం", m: "Sight/View", s: "Ritual", l: "https://www.sathyasai.org/resources/indic-glossary" }]},{name: "YSR Kadapa",lat: 14.4673, lng: 78.8242,region: "Rayalaseema",history: "Heart of Rayalaseema. Known for 'Kadapa' (Threshold). Dialect uses strong words like 'Biddā' (Child/Son).",words: [{ t: "బిడ్డ", m: "Child/Son", s: "Slang", l: "https://kadapa.info/tag/rayalaseema-dialect/" },{ t: "రాయి", m: "Stone (Kadapa)", s: "Geo", l: "https://en.wikipedia.org/wiki/Kadapa_Stone" },{ t: "గడప", m: "Threshold", s: "Etymology", l: "https://en.wikipedia.org/wiki/Kadapa" },{ t: "దేవుడు", m: "God (Balaji)", s: "Religion", l: "https://en.wikipedia.org/wiki/Venkateswara" },{ t: "దర్గా", m: "Shrine", s: "Religion", l: "https://en.wikipedia.org/wiki/Ameen_Peer_Dargah" },{ t: "మసీదు", m: "Mosque", s: "Religion", l: "https://en.wikipedia.org/wiki/Ameen_Peer_Dargah" },{ t: "గండి", m: "Gorge", s: "Geo", l: "https://en.wikipedia.org/wiki/Gandikota" },{ t: "కోట", m: "Fort (Gandikota)", s: "History", l: "https://en.wikipedia.org/wiki/Gandikota" },{ t: "ఏరు", m: "River (Penna)", s: "Geo", l: "https://en.wikipedia.org/wiki/Penna_River" },{ t: "ఊరు", m: "Village", s: "General", l: "https://andhrabharati.com" }]},{name: "Annamayya",lat: 14.0772, lng: 79.0267,region: "Rayalaseema",history: "Named after Tallapaka Annamayya. Rayachoti is HQ. Dialect is a blend of Kadapa and Chittoor.",words: [{ t: "సంకీర్తన", m: "Song/Hymn", s: "Culture", l: "https://en.wikipedia.org/wiki/Annamacharya" },{ t: "వెంకన్న", m: "Lord Venkateswara", s: "Religion", l: "https://en.wikipedia.org/wiki/Venkateswara" },{ t: "తాళ్ళపాక", m: "Place Name", s: "History", l: "https://en.wikipedia.org/wiki/Tallapaka" },{ t: "రాచవీడు", m: "Rayachoti (Old)", s: "Etymology", l: "https://en.wikipedia.org/wiki/Rayachoti" },{ t: "కొండ", m: "Hill (Horsley)", s: "Geo", l: "https://en.wikipedia.org/wiki/Horsley_Hills" },{ t: "మదనపల్లె", m: "Place Name", s: "Geo", l: "https://en.wikipedia.org/wiki/Madanapalle" },{ t: "టమోటా", m: "Tomato", s: "Agri", l: "https://en.wikipedia.org/wiki/Madanapalle#Economy" },{ t: "పట్టు", m: "Silk", s: "Textile", l: "https://annamayya.ap.gov.in/te/" },{ t: "చీర", m: "Saree", s: "Textile", l: "https://annamayya.ap.gov.in/te/" },{ t: "పాట", m: "Song", s: "Culture", l: "https://en.wikipedia.org/wiki/Annamacharya" }]},{name: "Tirupati",lat: 13.6288, lng: 79.4192,region: "Pilgrimage Zone",history: "The Spiritual Capital. Dialect has Tamil influence due to proximity to Chennai and millions of pilgrims.",words: [{ t: "గోవిందా", m: "God's Name", s: "Religion", l: "https://en.wikipedia.org/wiki/Govinda" },{ t: "లడ్డు", m: "Prasadam", s: "Food", l: "https://en.wikipedia.org/wiki/Tirupati_Laddu" },{ t: "కొండ", m: "Hill (Seven)", s: "Geo", l: "https://en.wikipedia.org/wiki/Tirumala" },{ t: "ఏడు", m: "Seven", s: "Number", l: "https://en.wikipedia.org/wiki/Tirumala_Venkateswara_Temple" },{ t: "వెంకటేశ్వర", m: "God", s: "Religion", l: "https://en.wikipedia.org/wiki/Venkateswara" },{ t: "కళ్యాణ", m: "Wedding", s: "Ritual", l: "https://en.wikipedia.org/wiki/Kalyanotsavam" },{ t: "జుట్టు", m: "Hair (Tonsure)", s: "Ritual", l: "https://en.wikipedia.org/wiki/Tirumala_Venkateswara_Temple#Tonsure" },{ t: "దర్శనం", m: "View", s: "Religion", l: "https://en.wikipedia.org/wiki/Darshan" },{ t: "జూ", m: "Zoo", s: "Tourism", l: "https://en.wikipedia.org/wiki/Sri_Venkateswara_Zoological_Park" },{ t: "శ్రీహరికోట", m: "Spaceport", s: "Science", l: "https://en.wikipedia.org/wiki/Satish_Dhawan_Space_Centre" }]},{name: "Chittoor",lat: 13.2172, lng: 79.1003,region: "Southern Border",history: "Strong Tamil influence (Chittoor slang). Words like 'Maa' (Mango) and dairy terms are common.",words: [{ t: "మామిడి", m: "Mango", s: "Agri", l: "https://en.wikipedia.org/wiki/Chittoor_district#Economy" },{ t: "పాలు", m: "Milk", s: "Agri", l: "https://en.wikipedia.org/wiki/Dairy" },{ t: "గ్రానైట్", m: "Granite", s: "Industry", l: "https://en.wikipedia.org/wiki/Granite" },{ t: "కాణిపాకం", m: "Place Name", s: "Religion", l: "https://en.wikipedia.org/wiki/Kanipakam" },{ t: "వినాయకుడు", m: "Ganesha", s: "Religion", l: "https://en.wikipedia.org/wiki/Kanipakam_Vinayaka_Temple" },{ t: "బెల్లం", m: "Jaggery", s: "Food", l: "https://en.wikipedia.org/wiki/Jaggery" },{ t: "అరగొండ", m: "Half Hill", s: "Place", l: "https://en.wikipedia.org/wiki/Aragonda" },{ t: "చెరకు", m: "Sugarcane", s: "Agri", l: "https://en.wikipedia.org/wiki/Sugarcane" },{ t: "తమిళం", m: "Tamil", s: "Influence", l: "https://en.wikipedia.org/wiki/Chittoor_district#Demographics" },{ t: "టెంకాయ", m: "Coconut (Tenkaaya)", s: "Slang", l: "https://andhrabharati.com" }]}];// COMBINE DATA FOR ALL DISTRICTSconst allDistrictsData = [...Telangana_Data, ...andhraData];// --- 2. MAP SETUP ---// Center on the Telugu States regionconst map = L.map('map').setView([17.0, 80.0], 7);L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {attribution: '© OSM contributors'}).addTo(map);// --- 3. MARKERS & INTERACTION ---const sidebarPanel = document.getElementById('info-panel');// Red Marker Styleconst iconConfig = L.divIcon({className: 'custom-icon',html: `<div style="background:#e74c3c; width:12px; height:12px; border-radius:50%; border:2px solid white; box-shadow:0 0 4px rgba(0,0,0,0.4);"></div>`,iconSize: [14, 14],iconAnchor: [7, 7]});// Loop through the combined dataallDistrictsData.forEach(d => {const marker = L.marker([d.lat, d.lng], { icon: iconConfig }).addTo(map);// Hover Labelmarker.bindTooltip(`<b>${d.name}</b>`, { direction: 'top', offset: [0, -5] });// Click Actionmarker.on('click', () => {map.flyTo([d.lat, d.lng], 9, { duration: 1.2 });updateSidebar(d);});});function updateSidebar(data) {const rows = data.words.map(w => {// Check if a link exists ('l' property)const sourceContent = w.l? `<a href="${w.l}" target="_blank" class="source-link">${w.s}</a>`: w.s;return `<tr><td class="telugu-word">${w.t}</td><td>${w.m}</td><td style="color:#777; font-size:0.7rem;">${sourceContent}</td></tr>`;}).join('');sidebarPanel.innerHTML = `<div style="animation:fadeIn 0.4s;"><h2 class="district-title">${data.name}</h2><span class="region-tag">${data.region}</span>4 unmodified lines</table></div>`;}</script></body>
123456google-auth>=2.25.0google-auth-oauthlib>=1.2.0google-auth-httplib2>=0.2.0google-api-python-client>=2.110.0watchdog>=3.0.0python-dotenv>=1.0.0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169#!/usr/bin/env python3"""Automation RunnerMain orchestrator that runs all automation tasks:- File watching- Scheduled Google Sheets sync- Initial conversion"""
import jsonimport timeimport signalimport sysimport threadingimport subprocessfrom pathlib import Pathfrom datetime import datetime
# PathsBASE_DIR = Path(__file__).parent.parentCONFIG_FILE = BASE_DIR / "config.json"SHEETS_SYNC_SCRIPT = BASE_DIR / "scripts" / "sheets_sync.py"FILE_WATCHER_SCRIPT = BASE_DIR / "scripts" / "file_watcher.py"CSV_TO_JSON_SCRIPT = BASE_DIR / "scripts" / "csv_to_json.py"
class AutomationRunner: """Manages all automation tasks""" def __init__(self): self.config = self.load_config() self.running = True self.watcher_process = None self.sync_thread = None # Set up signal handlers for graceful shutdown signal.signal(signal.SIGINT, self.signal_handler) signal.signal(signal.SIGTERM, self.signal_handler) def signal_handler(self, sig, frame): """Handle shutdown signals""" print("\n\n🛑 Shutdown signal received...") self.running = False def load_config(self): """Load configuration""" if not CONFIG_FILE.exists(): print(f"❌ Config file not found: {CONFIG_FILE}") sys.exit(1) with open(CONFIG_FILE, 'r') as f: return json.load(f) def run_initial_conversion(self): """Run initial CSV-to-JSON conversion""" print("🔄 Running initial CSV-to-JSON conversion...") try: subprocess.run([sys.executable, str(CSV_TO_JSON_SCRIPT)], check=True) except subprocess.CalledProcessError: print("⚠️ Initial conversion failed (this is OK if CSV files don't exist yet)") def start_file_watcher(self): """Start the file watcher in a separate process""" if not self.config.get('file_watcher', {}).get('enabled', True): print("⚠️ File watcher disabled in config") return print("👀 Starting file watcher...") self.watcher_process = subprocess.Popen( [sys.executable, str(FILE_WATCHER_SCRIPT)], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, bufsize=1 ) # Stream output in a separate thread def stream_output(): for line in self.watcher_process.stdout: print(line, end='') threading.Thread(target=stream_output, daemon=True).start() def sync_sheets_once(self): """Run Google Sheets sync once""" print(f"\n⏰ [{datetime.now().strftime('%H:%M:%S')}] Running Google Sheets sync...") try: result = subprocess.run( [sys.executable, str(SHEETS_SYNC_SCRIPT)], capture_output=True, text=True ) print(result.stdout) if result.returncode != 0: print(result.stderr) except Exception as e: print(f"❌ Sync error: {e}") def start_scheduled_sync(self): """Start scheduled Google Sheets sync""" sheets_config = self.config.get('google_sheets', {}) if not sheets_config.get('enabled', False): print("⚠️ Google Sheets sync disabled in config") return interval_minutes = sheets_config.get('sync_interval_minutes', 5) print(f"⏰ Starting scheduled sync (every {interval_minutes} minutes)...") def sync_loop(): # Run initial sync self.sync_sheets_once() # Continue syncing at intervals while self.running: time.sleep(interval_minutes * 60) if self.running: self.sync_sheets_once() self.sync_thread = threading.Thread(target=sync_loop, daemon=True) self.sync_thread.start() def run(self): """Main run loop""" print("=" * 60) print("🚀 Dialect Map Automation System") print("=" * 60) print() # Run initial conversion self.run_initial_conversion() print() # Start file watcher self.start_file_watcher() # Start scheduled sync self.start_scheduled_sync() print() print("=" * 60) print("✅ All automation tasks started!") print("=" * 60) print("\n💡 Press Ctrl+C to stop all automation\n") # Keep running until stopped try: while self.running: time.sleep(1) except KeyboardInterrupt: pass # Cleanup print("\n🧹 Cleaning up...") if self.watcher_process: self.watcher_process.terminate() self.watcher_process.wait() print("✅ Automation stopped gracefully\n")
def main(): """Main entry point""" runner = AutomationRunner() runner.run()
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263#!/usr/bin/env python3"""Check Sheet NamesQuick utility to list all sheet tab names from Google Sheets"""
import jsonfrom pathlib import Pathfrom google.oauth2 import service_accountfrom googleapiclient.discovery import build
# PathsBASE_DIR = Path(__file__).parent.parentCONFIG_FILE = BASE_DIR / "config.json"CREDS_FILE = BASE_DIR / "credentials.json"
def get_sheet_names(spreadsheet_id, service): """Get all sheet names from a spreadsheet""" try: sheet_metadata = service.spreadsheets().get(spreadsheetId=spreadsheet_id).execute() sheets = sheet_metadata.get('sheets', []) return [sheet['properties']['title'] for sheet in sheets] except Exception as e: print(f"❌ Error: {e}") return []
def main(): # Load config with open(CONFIG_FILE, 'r') as f: config = json.load(f) # Authenticate print("🔐 Authenticating with Google Sheets API...\n") credentials = service_account.Credentials.from_service_account_file( CREDS_FILE, scopes=['https://www.googleapis.com/auth/spreadsheets.readonly'] ) service = build('sheets', 'v4', credentials=credentials) # Check each spreadsheet for sheet_config in config['google_sheets']['spreadsheets']: name = sheet_config['name'] spreadsheet_id = sheet_config['spreadsheet_id'] print(f"📊 {name}") print(f" ID: {spreadsheet_id[:20]}...") sheet_names = get_sheet_names(spreadsheet_id, service) if sheet_names: print(f" ✅ Found {len(sheet_names)} tab(s):") for tab_name in sheet_names: print(f" - '{tab_name}'") else: print(" ❌ No tabs found or error occurred") print()
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160#!/usr/bin/env python3"""CSV to JSON ConverterConverts dialect CSV files from sheets_output/ to JSON format for index.html"""
import csvimport jsonimport osfrom pathlib import Pathfrom collections import defaultdict
# PathsBASE_DIR = Path(__file__).parent.parentSHEETS_OUTPUT_DIR = BASE_DIR / "sheets_output"JSON_OUTPUT_DIR = BASE_DIR / "data" / "processed"
def convert_processed_dialects(): """Convert processed_dialects.csv to JSON format""" csv_file = SHEETS_OUTPUT_DIR / "processed_dialects.csv" json_file = JSON_OUTPUT_DIR / "processed_dialects.json" if not csv_file.exists(): print(f"⚠️ CSV file not found: {csv_file}") return False try: districts = [] with open(csv_file, 'r', encoding='utf-8') as f: reader = csv.DictReader(f) # Group words by district district_words = defaultdict(lambda: { 'name': '', 'lat': 0, 'lng': 0, 'region': '', 'history': '', 'words': [] }) for row in reader: district_name = row.get('District', '').strip() if not district_name: continue # Set district metadata (from first occurrence) if not district_words[district_name]['name']: district_words[district_name]['name'] = district_name district_words[district_name]['lat'] = float(row.get('Latitude', 0)) district_words[district_name]['lng'] = float(row.get('Longitude', 0)) district_words[district_name]['region'] = row.get('Region', '') district_words[district_name]['history'] = row.get('History', '') # Add word entry word_entry = { 't': row.get('Telugu_Word', ''), 'm': row.get('Meaning', ''), 's': row.get('Source', '') } if word_entry['t']: # Only add if Telugu word exists district_words[district_name]['words'].append(word_entry) # Convert to list districts = list(district_words.values()) # Write JSON JSON_OUTPUT_DIR.mkdir(parents=True, exist_ok=True) with open(json_file, 'w', encoding='utf-8') as f: json.dump(districts, f, ensure_ascii=False, indent=2) print(f"✅ Converted {csv_file.name} → {json_file.name}") print(f" {len(districts)} districts, {sum(len(d['words']) for d in districts)} words") return True except Exception as e: print(f"❌ Error converting processed_dialects.csv: {e}") return False
def convert_digiwords_grouped(): """Convert digiwords_grouped.csv to JSON format""" csv_file = SHEETS_OUTPUT_DIR / "digiwords_grouped.csv" json_file = JSON_OUTPUT_DIR / "digiwords_grouped.json" if not csv_file.exists(): print(f"⚠️ CSV file not found: {csv_file}") return False try: data = { "Telangana": defaultdict(list), "Andhra Pradesh": defaultdict(list) } with open(csv_file, 'r', encoding='utf-8') as f: reader = csv.DictReader(f) for row in reader: state = row.get('State', '').strip() district = row.get('District', '').strip() if not state or not district: continue word_entry = { 't': row.get('Telugu_Word', ''), 'm': row.get('Meaning', ''), 's': row.get('Source', 'Crowd') } if word_entry['t'] and state in data: data[state][district].append(word_entry) # Convert defaultdict to regular dict output = { state: dict(districts) for state, districts in data.items() } # Write JSON JSON_OUTPUT_DIR.mkdir(parents=True, exist_ok=True) with open(json_file, 'w', encoding='utf-8') as f: json.dump(output, f, ensure_ascii=False, indent=2) tg_count = sum(len(words) for words in output.get("Telangana", {}).values()) ap_count = sum(len(words) for words in output.get("Andhra Pradesh", {}).values()) print(f"✅ Converted {csv_file.name} → {json_file.name}") print(f" Telangana: {len(output.get('Telangana', {}))} districts, {tg_count} words") print(f" Andhra Pradesh: {len(output.get('Andhra Pradesh', {}))} districts, {ap_count} words") return True except Exception as e: print(f"❌ Error converting digiwords_grouped.csv: {e}") return False
def main(): """Convert all CSV files to JSON""" print("🔄 Starting CSV to JSON conversion...") print(f"📂 Input: {SHEETS_OUTPUT_DIR}") print(f"📂 Output: {JSON_OUTPUT_DIR}\n") success_count = 0 if convert_processed_dialects(): success_count += 1 if convert_digiwords_grouped(): success_count += 1 print(f"\n✨ Conversion complete: {success_count}/2 files successfully converted")
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129#!/usr/bin/env python3"""File WatcherMonitors sheets_output/ directory and triggers CSV-to-JSON conversion on changes"""
import timeimport jsonimport subprocessfrom pathlib import Pathfrom watchdog.observers import Observerfrom watchdog.events import FileSystemEventHandler
# PathsBASE_DIR = Path(__file__).parent.parentCONFIG_FILE = BASE_DIR / "config.json"CONVERTER_SCRIPT = BASE_DIR / "scripts" / "csv_to_json.py"
class CSVChangeHandler(FileSystemEventHandler): """Handles CSV file changes""" def __init__(self, debounce_seconds=2): self.debounce_seconds = debounce_seconds self.last_modified = {} def on_modified(self, event): """Called when a file is modified""" if event.is_directory: return # Only process CSV files if not event.src_path.endswith('.csv'): return # Debounce: ignore rapid consecutive changes now = time.time() if event.src_path in self.last_modified: if now - self.last_modified[event.src_path] < self.debounce_seconds: return self.last_modified[event.src_path] = now print(f"\n📝 Detected change: {Path(event.src_path).name}") self.trigger_conversion() def on_created(self, event): """Called when a file is created""" if not event.is_directory and event.src_path.endswith('.csv'): print(f"\n📄 New file: {Path(event.src_path).name}") self.trigger_conversion() def trigger_conversion(self): """Run the CSV-to-JSON converter""" print("🔄 Running CSV-to-JSON conversion...") try: result = subprocess.run( ['python3', str(CONVERTER_SCRIPT)], capture_output=True, text=True, cwd=str(BASE_DIR) ) if result.returncode == 0: print(result.stdout) else: print(f"❌ Conversion failed:") print(result.stderr) except Exception as e: print(f"❌ Error running converter: {e}")
def load_config(): """Load configuration""" if not CONFIG_FILE.exists(): return { 'file_watcher': { 'enabled': True, 'watch_directory': 'sheets_output', 'debounce_seconds': 2 } } with open(CONFIG_FILE, 'r') as f: return json.load(f)
def main(): """Start file watcher""" config = load_config() watcher_config = config.get('file_watcher', {}) if not watcher_config.get('enabled', True): print("⚠️ File watcher is disabled in config.json") return watch_dir = BASE_DIR / watcher_config.get('watch_directory', 'sheets_output') debounce = watcher_config.get('debounce_seconds', 2) if not watch_dir.exists(): print(f"❌ Watch directory not found: {watch_dir}") print(f"Creating directory: {watch_dir}") watch_dir.mkdir(parents=True, exist_ok=True) print("👀 File Watcher Started") print(f"📂 Watching: {watch_dir}") print(f"⏱️ Debounce: {debounce} seconds") print("\nWaiting for CSV file changes... (Press Ctrl+C to stop)\n") event_handler = CSVChangeHandler(debounce_seconds=debounce) observer = Observer() observer.schedule(event_handler, str(watch_dir), recursive=False) observer.start() try: while True: time.sleep(1) except KeyboardInterrupt: print("\n\n👋 Stopping file watcher...") observer.stop() observer.join() print("✅ File watcher stopped")
if __name__ == "__main__": main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190#!/usr/bin/env python3"""Google Sheets SyncDownloads data from Google Sheets and saves as CSV files"""
import jsonimport osimport sysfrom pathlib import Pathfrom google.auth.transport.requests import Requestfrom google.oauth2.credentials import Credentialsfrom google.oauth2 import service_accountfrom google_auth_oauthlib.flow import InstalledAppFlowfrom googleapiclient.discovery import buildfrom googleapiclient.errors import HttpError
# If modifying these scopes, delete the file token.json.SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonly']
# PathsBASE_DIR = Path(__file__).parent.parentCONFIG_FILE = BASE_DIR / "config.json"SHEETS_OUTPUT_DIR = BASE_DIR / "sheets_output"
def load_config(): """Load configuration from config.json""" if not CONFIG_FILE.exists(): print(f"❌ Config file not found: {CONFIG_FILE}") sys.exit(1) with open(CONFIG_FILE, 'r') as f: return json.load(f)
def get_credentials(config): """Get Google Sheets API credentials""" creds = None credentials_file = BASE_DIR / config['google_sheets']['credentials_file'] token_file = BASE_DIR / 'token.json' # Check if credentials file exists if not credentials_file.exists(): print(f"❌ Credentials file not found: {credentials_file}") print("\n📝 To set up Google Sheets API:") print("1. Go to https://console.cloud.google.com/") print("2. Create a new project or select existing") print("3. Enable Google Sheets API") print("4. Create credentials (OAuth 2.0 or Service Account)") print(f"5. Download credentials.json to {BASE_DIR}") sys.exit(1) # Try service account first (recommended for automation) try: creds = service_account.Credentials.from_service_account_file( str(credentials_file), scopes=SCOPES) print("✅ Using service account credentials") return creds except Exception: pass # Fall back to OAuth flow if token_file.exists(): creds = Credentials.from_authorized_user_file(str(token_file), SCOPES) # If there are no (valid) credentials available, let the user log in. if not creds or not creds.valid: if creds and creds.expired and creds.refresh_token: creds.refresh(Request()) else: flow = InstalledAppFlow.from_client_secrets_file( str(credentials_file), SCOPES) creds = flow.run_local_server(port=0) # Save the credentials for the next run with open(token_file, 'w') as token: token.write(creds.to_json()) print("✅ Using OAuth credentials") return creds
def download_sheet_as_csv(service, spreadsheet_id, sheet_name, output_filename): """Download a specific sheet as CSV""" try: # Get the sheet data result = service.spreadsheets().values().get( spreadsheetId=spreadsheet_id, range=f"{sheet_name}!A:Z" # Adjust range as needed ).execute() values = result.get('values', []) if not values: print(f"⚠️ No data found in sheet: {sheet_name}") return False # Write to CSV output_file = SHEETS_OUTPUT_DIR / output_filename SHEETS_OUTPUT_DIR.mkdir(parents=True, exist_ok=True) import csv with open(output_file, 'w', newline='', encoding='utf-8') as f: writer = csv.writer(f) writer.writerows(values) print(f"✅ Downloaded {sheet_name} → {output_filename}") print(f" {len(values)} rows") return True except HttpError as error: print(f"❌ Error downloading {sheet_name}: {error}") return False
def sync_all_sheets(): """Sync all configured sheets from Google Sheets""" config = load_config() if not config['google_sheets']['enabled']: print("⚠️ Google Sheets sync is disabled in config.json") return False # Check if using new multi-spreadsheet config spreadsheets = config['google_sheets'].get('spreadsheets', []) if not spreadsheets: # Fallback to old single spreadsheet config spreadsheet_id = config['google_sheets'].get('spreadsheet_id', 'YOUR_SHEET_ID_HERE') if spreadsheet_id == "YOUR_SHEET_ID_HERE": print("❌ Please update config.json with your spreadsheet IDs") print("\n📝 To find your spreadsheet ID:") print("Open your Google Sheet and copy the ID from the URL:") print("https://docs.google.com/spreadsheets/d/[SPREADSHEET_ID]/edit") return False # Convert old format to new format for processing spreadsheets = [{ 'name': 'Main Spreadsheet', 'spreadsheet_id': spreadsheet_id, 'sheets': config['google_sheets'].get('sheets', {}) }] print("🔄 Starting Google Sheets sync...") print(f"📊 Syncing from {len(spreadsheets)} spreadsheet(s)\n") try: creds = get_credentials(config) service = build('sheets', 'v4', credentials=creds) total_success = 0 total_sheets = 0 # Process each spreadsheet for spreadsheet in spreadsheets: spreadsheet_id = spreadsheet.get('spreadsheet_id', '') spreadsheet_name = spreadsheet.get('name', 'Unnamed') sheets_config = spreadsheet.get('sheets', {}) if not spreadsheet_id or spreadsheet_id.startswith('YOUR_'): print(f"⚠️ Skipping '{spreadsheet_name}': ID not configured") continue print(f"📋 {spreadsheet_name}") print(f" ID: {spreadsheet_id[:20]}...") # Download each sheet from this spreadsheet for csv_name, sheet_name in sheets_config.items(): total_sheets += 1 if download_sheet_as_csv(service, spreadsheet_id, sheet_name, f"{csv_name}.csv"): total_success += 1 print() # Blank line between spreadsheets print(f"✨ Sync complete: {total_success}/{total_sheets} sheets downloaded") return total_success > 0 except Exception as e: print(f"❌ Error during sync: {e}") return False
def main(): """Main entry point""" sync_all_sheets()
if __name__ == '__main__': main()123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179State,District,Telugu_Word,Meaning,Source
Andhra Pradesh,Anantapur,దిండు,Pillows,Crowd
Andhra Pradesh,Annamayya,ఆ తుప్పాస్,Nonsense/Useless,Crowd
Andhra Pradesh,Chittoor,ముడ్దులు,అంగడి,Crowd
Andhra Pradesh,Chittoor,సెమిరేసినావ,Prepared,Crowd
Andhra Pradesh,Chittoor,వంకాయ పులగూర్,కూర,Crowd
Andhra Pradesh,Chittoor,ఈరి మోది,పచ్చడి,Crowd
Andhra Pradesh,Chittoor,అబ్బ,Grandfather,Crowd
Andhra Pradesh,Chittoor,జెడి,Hair knot,Crowd
Andhra Pradesh,East Godavari,దుకాణం,కొట్టు,Crowd
Andhra Pradesh,East Godavari,పైరు,బంగాళదుంప,Crowd
Andhra Pradesh,East Godavari,బువ్వ,Food,Crowd
Andhra Pradesh,East Godavari,గుడి,దేవాలయం,Crowd
Andhra Pradesh,East Godavari,సామానం,ఆలస్యం చేయడం,Crowd
Andhra Pradesh,East Godavari,బేగ రా,తొందరగా రా,Crowd
Andhra Pradesh,Eluru,శనగపప్పు,వేరుశనగ,Crowd
Andhra Pradesh,Eluru,చాలా బాగుంది,Very good,Crowd
Andhra Pradesh,Kadapa,కంత,రంధ్రం (Hole),Crowd
Andhra Pradesh,Kadapa,బాగా ఎక్కువగా,Exceedingly,Crowd
Andhra Pradesh,Kadapa,చాపు మాటలు,పెద్ద మాటలు,Crowd
Andhra Pradesh,Kadapa,బొరుగులు,మరమరాలు,Crowd
Andhra Pradesh,Kadapa,రామాడం,మెత్తగా చేయడం,Crowd
Andhra Pradesh,Kadapa,ఎనుము,బర్రె,Crowd
Andhra Pradesh,Kadapa,ముక్కొల్,3 వాడిముళ్ళు,Crowd
Andhra Pradesh,Kurnool,బుడ్డల నూనె,పల్లి oil (Peanut oil),Crowd
Andhra Pradesh,Nandyal,తంగాది,కొట్టుదు ఇచ్చింది మధ్యన,Crowd
Andhra Pradesh,Nandyal,గుడి,దేవాలయము,Crowd
Andhra Pradesh,Nandyal,హితాలు,బువ్వ తిన్నారా,Crowd
Andhra Pradesh,Nandyal,తద్దినం,పితృ దేవతల కార్యం,Crowd
Andhra Pradesh,Nandyal,తువాయి,ఆవు దూడ (Calf),Crowd
Andhra Pradesh,Nandyal,పురుకోస,Jute thread twisted,Crowd
Andhra Pradesh,Ongole,బయట వెళ్ళాడు,బయటకు వెళ్ళాడు,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,ఎర్రగడ్డ,Onion,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,తెల్ల గడ్డ,వెల్లుల్లి,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,ఉల్లగడ్డ,Potato,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,ఖిన్నారా,అద్దెకు రా,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,ముడక,నాగలి,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,కొక,చీర,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,రైన,జాకెట్,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,కడ్డీలు,అగరబత్తిలు,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,పెద్ద నాన్న,నాన్న అన్న,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,చిన్న నాన్న,నాన్న తమ్ముడు,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,పెద్దమ్మ,నాన్న అన్న భార్య,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,చిన్నమ్మ,నాన్న తమ్ముడు భార్య,Crowd
Andhra Pradesh,P.R. నియోజకవర్గం,పొద్దు పొయ్యింది,సాయంత్రం సమయం,Crowd
Andhra Pradesh,Rayalaseema,లోపల,Inside,Crowd
Andhra Pradesh,Rayalaseema,బొగాలు,Keys,Crowd
Andhra Pradesh,Srikakulam,డొంక,తలుపు (Door),Crowd
Andhra Pradesh,Srikakulam,కుంక,Pillodu,Crowd
Andhra Pradesh,Srikakulam,ఖాగి,వేగంగా,Crowd
Andhra Pradesh,Srikakulam,బాతె,చావు,Crowd
Andhra Pradesh,Srikakulam,అమ్మ,Mother,Crowd
Andhra Pradesh,Srikakulam,తెల్లారితే,వేకువన,Crowd
Andhra Pradesh,Tirupati,ఊరాల్,Nonsense,Crowd
Andhra Pradesh,Vizianagaram,ఉకుజురు,Egg Burji,Crowd
Andhra Pradesh,Vizianagaram,వర్ర,కారం,Crowd
Andhra Pradesh,Vizianagaram,బేపి,కుక్క,Crowd
Andhra Pradesh,Vizianagaram,పైనా,పైన,Crowd
Andhra Pradesh,Vizianagaram,దొడ్డ,పెద్ద అమ్మ,Crowd
Andhra Pradesh,Vizianagaram,జిజ బేగరా,తొందరగా రా,Crowd
Andhra Pradesh,Vizianagaram,బంగాళదుంప,ఆలుగడ్డ,Crowd
Andhra Pradesh,Vizianagaram,ఉల్లిపాయ,ఎర్రగ���్డ,Crowd
Andhra Pradesh,Vizianagaram,అప్ప,అక్క,Crowd
Andhra Pradesh,Vizianagaram,గుంత,రంధ్రం,Crowd
Andhra Pradesh,Vizianagaram,గెడ/బర్రె,Buffalo,Crowd
Andhra Pradesh,Vizianagaram,గడ్డి,చిన్న సెలయేరు,Crowd
Andhra Pradesh,West Godavari,రాతు తడి,Irrigation term,Crowd
Telangana,Adilabad,చోలోట్,మంచి (Good),Crowd
Telangana,Adilabad,వంచెడ్ చిబడ్,అంటు ముట్టుకోడం,Crowd
Telangana,Adilabad,వడోగు,దూడ (Calf),Crowd
Telangana,Adilabad,ముచిలి పడన్,ఎర్ర తుమ్మెద,Crowd
Telangana,Adilabad,సర్కార్,నాశనం,Crowd
Telangana,Adilabad,వజీర్,ముసలి,Crowd
Telangana,Adilabad,ఖైని,వదిన,Crowd
Telangana,Adilabad,సూన్,కోడలు,Crowd
Telangana,Adilabad,Poral batal,Temple term (Keslapur),Crowd
Telangana,Gadwal,ఓల్లి,No,Crowd
Telangana,Gadwal,కూడు తింటవా,తిన్నారా,Crowd
Telangana,Gadwal,తువ్వ,ఎర్ర పొలం,Crowd
Telangana,Gadwal,పురకోస,జూట్ దార,Crowd
Telangana,Gadwal,జుముజలమ్మ,దేవత,Crowd
Telangana,Gadwal,తలుగు ఎల్లమ్మ,దేవత,Crowd
Telangana,Gadwal,తెల్వది,Don't know,Crowd
Telangana,Gadwal,మడసంగ,నెమ్మదిగా/జాగ్రత్తగా,Crowd
Telangana,Gadwal,రప్పున,జల్ది,Crowd
Telangana,Gadwal,మడసంగ,Careful,Crowd
Telangana,Hyderabad,కిటికీ,Window,Crowd
Telangana,Hyderabad,అంగీ,Shirt,Crowd
Telangana,Hyderabad,కుక్క,Dog,Crowd
Telangana,Hyderabad,కుర్చీ,Chair,Crowd
Telangana,Hyderabad,Amma buvva pettava,Mother feed me,Crowd
Telangana,Hyderabad,Chaderghat,Location,Crowd
Telangana,Hyderabad,తొవ్వ దారి,Way/Path,Crowd
Telangana,Hyderabad,పాతాళగరిసె,Tool to remove bucket,Crowd
Telangana,Hyderabad,అంబటాలు,Afternoon time,Crowd
Telangana,Hyderabad,ఇన్సురాయి,Stone tool,Crowd
Telangana,Hyderabad,బుక్కెట్,Tool for well,Crowd
Telangana,Jangaon,ఏమైంది,What happened,Crowd
Telangana,Karimnagar,బూరెలు,భక్ష్యాలు,Crowd
Telangana,Karimnagar,అచ్చినం,వచ్చాము,Crowd
Telangana,Karimnagar,పాయినం,వెళ్ళాము,Crowd
Telangana,Karimnagar,సవాలు,Question/Challenge,Crowd
Telangana,Karimnagar,గటక,Food item,Crowd
Telangana,Karimnagar,వస్తున్నావ,వస్తున్నావు,Crowd
Telangana,Karimnagar,ఊశము,బద్ధకం/అలసత్వం,Crowd
Telangana,Karimnagar,వందంగా ఉంది,బాగా,Crowd
Telangana,Karimnagar,రువిడ్లు,Shelf,Crowd
Telangana,Karimnagar,కార్యపాలు,వస్తున్నం/పోతున్నాం,Crowd
Telangana,Karimnagar,బావి,నూతి,Crowd
Telangana,Karimnagar,గంప,గుల్ల,Crowd
Telangana,Karimnagar,బంతి,Ball,Crowd
Telangana,Mahabubnagar,వీధి,Street,Crowd
Telangana,Mahabubnagar,జల్ది,తొందరగా,Crowd
Telangana,Mahabubnagar,జింగిడి,బర్రెల గుంపు,Crowd
Telangana,Mahabubnagar,బాగమ్,Exhibition,Crowd
Telangana,Mahabubnagar,చలక,Field,Crowd
Telangana,Mahabubnagar,ఈల పేట,కత్తి పేట,Crowd
Telangana,Mahabubabad,బొచ్చెడు,చాలా (A lot),Crowd
Telangana,Mahabubabad,ఏ మయింది అన్నా,What happened,Crowd
Telangana,Medak,కీసా,జేబు,Crowd
Telangana,Medak,పైను,ఆరు (Six),Crowd
Telangana,Nagar Kurnool,అంబటాలు,Morning meal time,Crowd
Telangana,Nagar Kurnool,మంకర,Winter cold,Crowd
Telangana,Nagar Kurnool,లాడు,తల్లి కూతురు,Crowd
Telangana,Nagar Kurnool,గెనిమ,పొలం గట్టు,Crowd
Telangana,Nagar Kurnool,కోంత లోలు,Old name for Nagar Kurnool,Crowd
Telangana,Nalgonda,Dupa aithundhi,దాహం వేస్తుంది,Crowd
Telangana,Nalgonda,సేరు,1kg measuring device,Crowd
Telangana,Nalgonda,Kurdedu Biyam,Amount of rice,Crowd
Telangana,Nalgonda,Anglam dundu,అగ్గి పెట్టె,Crowd
Telangana,Nalgonda,సది,Take the box,Crowd
Telangana,Nalgonda,తట్ట,పళ్ళెం,Crowd
Telangana,Nalgonda,కోవెల,గుడి,Crowd
Telangana,Nalgonda,ఊసలు,Weaving technique,Crowd
Telangana,Nalgonda,బువ్వ,Cooked rice,Crowd
Telangana,Nalgonda,తవాచీ,Shelf with doors,Crowd
Telangana,Nalgonda,తపుకు,Plate on vessel,Crowd
Telangana,Nalgonda,లడ్లు,అరిసెలు,Crowd
Telangana,Nalgonda,దారి,బాట,Crowd
Telangana,Narayanpet,బుబ్బి,అమ్మ,Crowd
Telangana,Narayanpet,పడం,మట్టి,Crowd
Telangana,Narayanpet,చెముక్కలు,మోకాళ్ళు,Crowd
Telangana,Narayanpet,మొర,మంచం,Crowd
Telangana,Narayanpet,అబుత,జుట్టు,Crowd
Telangana,Narayanpet,జేజి,Fat,Crowd
Telangana,Narayanpet,అంబలి,జావ,Crowd
Telangana,Nizamabad,పంపేవుడు,పంపించడం,Crowd
Telangana,Nizamabad,Pillodu,Bindu,Crowd
Telangana,Nizamabad,వచ్చిండు,అచ్చిండు,Crowd
Telangana,Peddapally,గుమ్ము,Storage,Crowd
Telangana,Peddapally,గట్టు,దారి,Crowd
Telangana,Rangareddy,వీరునో,తెలుగు,Crowd
Telangana,Rangareddy,తొక్కుడు,మంచం,Crowd
Telangana,Rangareddy,మూర,ముంగిలి,Crowd
Telangana,Rangareddy,కారం,పచ్చడి,Crowd
Telangana,Rangareddy,ఈ గడ,కడ,Crowd
Telangana,Siddipet,అంగీ,Shirt,Crowd
Telangana,Siddipet,పొయ్యిర్రు,వెళ్ళారు,Crowd
Telangana,Siddipet,మెగులుతుంది,వర్షం వచ్చి ఆగిన,Crowd
Telangana,Siddipet,అలుకురు,Pre cultivation,Crowd
Telangana,Siddipet,పయిలం,జాగ్రత్త,Crowd
Telangana,Siddipet,తప్పెలు,Rice plate,Crowd
Telangana,Siddipet,పందిట్లు,పందిరి,Crowd
Telangana,Siddipet,రాకొచ్చింది,రాదు,Crowd
Telangana,Siddipet,పోకొచ్చింది,పోదు,Crowd
Telangana,Siddipet,కుకో,కూర్చో,Crowd
Telangana,Siddipet,ఏడారు,Afternoon time,Crowd
Telangana,Wanaparthy,చెప్పలకాయలు,గొంకరకాయలు,Crowd
Telangana,Wanaparthy,మలంచా,చెంబు,Crowd
Telangana,Wanaparthy,సొరకాయ,ఆనకాయ,Crowd
Telangana,Wanaparthy,పాశాల,Clothes,Crowd
Telangana,Wanaparthy,మట్టుగుండు,Keep calm,Crowd
Telangana,Wanaparthy,అంబరుంది,Excellent,Crowd
Telangana,Warangal,చేను,Crop/చలక,Crowd
Telangana,Warangal,పొయ్యం రారా,ఇన్నానిల్లు,Crowd
Telangana,Warangal,అసుంట,అటు వైపు,Crowd
Telangana,Warangal,ఇసుంట,ఇటు వైపు,Crowd
Telangana,Warangal,చద్దెర,Bed sheet,Crowd
Andhra Pradesh,Guntur,నగబు ,An ancient word for snake,Crowd.env.exampleDeleted-12
.gitignoreDeleted-48
DockerfileDeleted-30
QUICKSTART.mdDeleted-109
README.md+6-291
SECRETS_SETUP.mdDeleted-361
app.pyDeleted-184
config.json.exampleDeleted-27
credentials.json.exampleDeleted-12
data/processed/digiwords_grouped.jsonDeleted-962
data/processed/processed_dialects.jsonDeleted
index.html+537-376
requirements.txtDeleted-6
scripts/automation_runner.pyDeleted-169
scripts/check_sheet_names.pyDeleted-63
scripts/csv_to_json.pyDeleted-160
scripts/file_watcher.pyDeleted-129
scripts/sheets_sync.pyDeleted-190
sheets_output/digiwords_grouped.csvDeleted-179
sheets_output/processed_dialects.csvDeleted