# Mangalore Place-Name Meanings

Starter dataset for Mangaluru-area place names, alternate names, and community-sourced meaning or origin claims.

The first release is intentionally conservative. It captures Reddit threads that are useful for finding local knowledge, but it does not treat Reddit comments as authoritative etymology. Use these files as a research index and extraction scaffold, then verify claims against stronger sources before publishing factual claims.

## Files

| File | Purpose |
| --- | --- |
| `place_meanings.csv` | 108 place-name meaning rows extracted from the main community compilation. |
| `source_manifest.csv` | Reddit source posts found during the initial source search, plus Tulu place-name blog posts added later. |
| `claim_variants.csv` | Follow-up, conflicting, or candidate claims from related Reddit discussions and other sources. |
| `quality_flags.csv` | Caveat labels for source and claim status. |
| `data_dictionary.csv` | Column-level definitions for the CSV files. |
| `place_locations.csv` | Approximate map points for 81 of the 108 names, with how each was placed (ward centre, news junction, OpenStreetMap landmark, road midpoint or place search). Blank rows could not be placed confidently. |
| `map_context.geojson` | Simplified ward outlines and main roads for the map backdrop, derived from OpenStreetMap (ODbL). |
| `tag_tree.csv` | The tag hierarchy (water, land, plants and animals, settlement, people and faith, built, describing words), up to three levels deep. |
| `root_lexicon.csv` | 73 word roots found inside the names (kere, bail, gudde, adka, halli, koppa…), each with its gloss, tag, a language hint, per-spelling languages (`form_languages`), a confidence level and its sources. `gloss_basis` says where the gloss comes from: the community list, the Tulu blog, a Reddit comment, or an editor's note (unverified). |
| `name_tags.csv` | Tags for the 108 listed names. `basis` is `list_meaning` (the list's own gloss mentions it) or `name_root` (the name contains a lexicon root). |
| `name_corpus.csv` | 2,335 village, hamlet, locality, ward and street names from Manjeshwar to Karwar (Kasaragod 441, Dakshina Kannada 767, Udupi 390, Uttara Kannada 737), from OpenStreetMap (ODbL), with Kannada and Malayalam script names where mapped. Matched against the root lexicon by spelling only (`basis` = `inferred_from_root_lexicon`, 1,387 with a root), each match with its language. These show where a root appears; they are not sourced meanings. |
| `name_terrain.csv` | Elevation, height above surroundings, slope, distance to the sea and shop density for 2,275 of those names. Villages are measured as areas, hamlets and localities as points, streets as lines. |
| `root_candidates.csv` | 194 endings and beginnings the computer found by counting (each seen in six or more distinct words, with at least 1.5 bits of variety in the neighbouring letter). Marked as a known form, a known form plus a linking letter, or a new unglossed candidate. |
| `name_breakings.csv` | The three cheapest ways to cut every word of every name into pieces, with each cut's share of the odds. Computer output, not meanings. |
| `terrain_tests.csv` | For each tag and root: medians, AUC, best threshold and a within-area permutation test (BH-adjusted). |
| `terrain_anova.json` | Top-level themes compared: ANOVA, Kruskal-Wallis and effect sizes. |
| `summary.json` | Machine-readable dataset summary and caveats. |

## Initial Source Threads

The main extracted source is the Reddit post `Place Names in Mangalore and their Meanings`, which includes a 108-row community list and a few external reference links. The seed thread for this dataset was the newer Ballalbagh/Lalbagh discussion.

Additional source candidates cover Kudla/Kodial, old and alternate place names, Hampankatta, Car Street, Statebank, Mangaluru name variants, and Dakshina Kannada naming history. These are listed in `source_manifest.csv`.

## Scope

- Primary geography: Mangaluru place names (the community list), and region names along the coast from Manjeshwar (Kasaragod) to Ankola (Uttara Kannada), inland to the ghats.
- Source type: public Reddit discussions in `r/mangalore`.
- Initial extraction date: 2026-06-17.
- Verification level: community-sourced and mostly unverified.

## Quality Notes

This dataset should not be cited as proof of place-name origins. It is a source-finding and normalization layer. Some rows are likely folk etymology, some may be partly correct but imprecise, and some refer to historic buildings, circles, roads, or bus-stand names rather than stable neighborhoods.

For a stronger release, the next pass should:

- check the Karnataka gazetteer and older South Canara / Mangalore maps;
- split grouped names such as `Bolur and Bolar` into separate normalized rows when needed;
- add language/source fields after verifying Tulu, Kannada, Konkani, Beary, Sanskrit, Portuguese, or English derivations;
- distinguish place names, alternate language names, road/circle names, institutional names, and folklore;
- keep jokes and unsupported claims in `claim_variants.csv`, not in the main table.

## Roots and tags

`scripts/build_place_roots.py` rebuilds `name_tags.csv` and `name_corpus.csv` from `root_lexicon.csv`, `tag_tree.csv` and `place_meanings.csv`. Edit the lexicon or tree by hand, then rerun it. Use `--fetch` to refresh region names from OpenStreetMap, or `--from-json` with a saved Overpass download when the public server is busy.

A root match is a guess from spelling. Short endings such as `-al`, `-ur` and `-adi` will catch some names by coincidence, which is why every root carries a confidence level.

## Ground and names

`scripts/analyse_place_terrain.py` measures every corpus name with a point against the ground and asks whether names follow it: do hill words sit higher than their neighbours, market words among shops? It downloads elevation tiles (AWS Terrain Tiles, zoom 11, mostly SRTM 30 m) and reads a saved Overpass download of shops and everyday amenities.

    python3 scripts/analyse_place_terrain.py --dem /path/to/tiles --shops shops.json --admin districts.json

A village is an area, so it is measured as the median ground over a disc about its size; a hamlet or locality is a point. Neighbouring places share ground, so each tag or root is tested only against places in the same 0.2° cell (999 within-cell shuffles, Benjamini–Hochberg adjusted). Read the effect sizes (AUC, η², ε²) before the p-values. These are associations, not etymologies.

It also writes the page's ground layers: `visualization/place-name-meanings/terrain/relief.png` (shaded relief) and `fields.json` (name density per theme and root, spread with a Gaussian kernel, which is heat diffusion; shop density; district outlines).

## Pieces found by computer

`scripts/discover_place_roots.py` reads every distinct word (four letters or more) in `name_corpus.csv`. It counts every ending and beginning of two to seven letters, keeps those seen in six or more words, and then keeps only those preceded (or followed) by many different letters: Harris's successor variety, measured as entropy. An ending like "dka" fails because nearly every word with it really ends in "adka". Each word is then cut every possible way into up to four pieces; known and found pieces cost -log2 of their share of piece uses, leftover letters cost more, and the three cheapest cuts are kept with their relative odds. Found pieces are candidates only: none gets a meaning until a source glosses it.

## Contributors

- Thanks to Gagan, who suggested terms and words worth looking into, such as adka and Uchila. Their readings are sourced to Ravindra Mundkur's [TuLu Research & Studies](https://tulu-research.blogspot.com/) blog (the `tulu_research_*` rows in `source_manifest.csv`) and stay marked as needing verification.
