Class DialectMapper
java.lang.Object
org.episteme.social.linguistics.DialectMapper
Analytical tool for dialect mapping and isogloss analysis. It facilitates
the study of spatial linguistic variation by mapping features to geographical
locations and drawing boundaries between dialect regions.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordData point from a linguistic survey at a specific geographical location.static final recordRepresents a line on a map marking the geographical boundary of a linguistic feature.static final recordRepresents a specific linguistic variable (phonological, lexical, etc.). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DialectMapper.LinguisticFeaturestatic final DialectMapper.LinguisticFeaturestatic final DialectMapper.LinguisticFeaturestatic final DialectMapper.LinguisticFeaturestatic final DialectMapper.LinguisticFeature -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Integer, List<DialectMapper.DialectDataPoint>> clusterDialects(List<DialectMapper.DialectDataPoint> data, int numClusters) Groups dialect points into clusters based on shared linguistic features using an iterative similarity-based algorithm.static DialectMapper.IsoglosscreateIsogloss(List<DialectMapper.DialectDataPoint> data, DialectMapper.LinguisticFeature feature, String name) Generates an isogloss boundary based on a collection of survey data points for a specific linguistic feature.static StringgenerateMapSummary(List<DialectMapper.DialectDataPoint> data, List<DialectMapper.Isogloss> isoglosses) Generates a structural summary of the dialectal map and identified isoglosses.static RealCalculates the linguistic distance (using Jaccard similarity inverse) between two survey points.
-
Field Details
-
RHOTICITY
-
VOWEL_SHIFT
-
CODA_DEVOICING
-
DOUBLE_NEGATION
-
Y_ALL
-
-
Method Details
-
createIsogloss
public static DialectMapper.Isogloss createIsogloss(List<DialectMapper.DialectDataPoint> data, DialectMapper.LinguisticFeature feature, String name) Generates an isogloss boundary based on a collection of survey data points for a specific linguistic feature.- Parameters:
data- list of survey pointsfeature- the feature to mapname- name for the generated isogloss- Returns:
- an Isogloss representing the boundary for the feature
-
linguisticDistance
public static Real linguisticDistance(DialectMapper.DialectDataPoint a, DialectMapper.DialectDataPoint b) Calculates the linguistic distance (using Jaccard similarity inverse) between two survey points.- Parameters:
a- first survey pointb- second survey point- Returns:
- distance metric (0.0 to 1.0) as a Real
-
clusterDialects
public static Map<Integer, List<DialectMapper.DialectDataPoint>> clusterDialects(List<DialectMapper.DialectDataPoint> data, int numClusters) Groups dialect points into clusters based on shared linguistic features using an iterative similarity-based algorithm.- Parameters:
data- survey points to clusternumClusters- target number of clusters- Returns:
- map of cluster index to list of points
-
generateMapSummary
public static String generateMapSummary(List<DialectMapper.DialectDataPoint> data, List<DialectMapper.Isogloss> isoglosses) Generates a structural summary of the dialectal map and identified isoglosses.- Parameters:
data- the survey datasetisoglosses- the identified boundaries- Returns:
- a human-readable summary
-