web / lib/services/schema-builder/field-mapping-detection
lib/services/schema-builder/field-mapping-detection
Language-aware field mapping detection for schema building.
Provides detection of standard event fields (title, description, timestamp, geo) based on dataset language. Supports multiple languages including English, German, French, Spanish, Italian, Dutch, and Portuguese.
Interfaces
FieldMappings
Field mappings detected or configured for a schema
Properties
titlePath
titlePath:
string|null
descriptionPath
descriptionPath:
string|null
locationNamePath
locationNamePath:
string|null
timestampPath
timestampPath:
string|null
latitudePath
latitudePath:
string|null
longitudePath
longitudePath:
string|null
locationPath
locationPath:
string|null
Functions
detectFieldMappings()
detectFieldMappings(
fieldStats,language):FieldMappings
Detects field mappings for a dataset based on language
Parameters
fieldStats
Record<string, FieldStatistics>
Statistics for all fields in the dataset
language
string
ISO-639-3 language code (e.g., ‘eng’, ‘deu’, ‘fra’)
Returns
Detected field mappings