Idiomark v1.0 Technical Specification
Current: Production | Version: 1.0.0 | Status: Stable
File Format
A .idiomark file follows this structure:
{
"idiomark": "1.0.0",
"id": "idiomark_abc123def456",
"created": "2025-01-15T00:00:00Z",
"updated": "2025-01-15T00:00:00Z",
"metadata": {
"entity": {
"name": "Optional Name",
"type": "human|brand|bot",
"sources": ["twitter", "github"]
},
"extraction": {
"date": "2025-01-15T00:00:00Z",
"sample_size": 2500,
"timeframe": {
"from": "2024-10-15T00:00:00Z",
"to": "2025-01-15T00:00:00Z"
}
}
},
"personality": {
"voice": { ... },
"patterns": { ... },
"domains": [ ... ],
"values": [ ... ],
"knowledge": { ... }
}
}
Personality Dimensions
Voice
Defines how an entity communicates:
| Field | Type | Range | Description |
|---|---|---|---|
| tone.primary | string | - | Primary tone descriptor |
| tone.secondary | string | - | Secondary tone descriptor |
| tone.confidence | number | 0.0-1.0 | Confidence in tone classification |
| formality | number | 0.0-1.0 | 0.0=casual, 1.0=formal |
| humor | number | 0.0-1.0 | 0.0=serious, 1.0=very humorous |
| sarcasm | number | 0.0-1.0 | 0.0=sincere, 1.0=heavily sarcastic |
| enthusiasm | number | 0.0-1.0 | 0.0=flat, 1.0=high energy |
| directness | number | 0.0-1.0 | 0.0=euphemistic, 1.0=blunt |
Patterns
Statistical communication patterns:
| Field | Type | Description |
|---|---|---|
| sentence_length.mean | number | Average sentence length in words |
| sentence_length.stddev | number | Standard deviation from mean |
| emoji_usage.frequency | string | "low", "medium", "high" |
| emoji_usage.top_emojis | array[] | Most frequently used emojis |
| emoji_usage.position | string | "start", "end", "mixed" |
| punctuation.exclamation_frequency | number | Ratio of exclamations to sentences |
| punctuation.question_frequency | number | Ratio of questions to sentences |
| punctuation.ellipsis_usage | string | "low", "medium", "high" |
Domains
Areas of expertise:
| Field | Type | Description |
|---|---|---|
| name | string | Domain name (e.g., "javascript") |
| confidence | number | 0.0-1.0 confidence score |
| evidence | array[] | Supporting evidence types |
Values
Inferred beliefs and positions:
| Field | Type | Description |
|---|---|---|
| name | string | Value name (e.g., "open_source") |
| sentiment | string | "positive", "negative", "neutral" |
| confidence | number | 0.0-1.0 confidence score |
Knowledge
Specific entities and concepts:
| Field | Type | Description |
|---|---|---|
| frequent_terms | array[] | Most common technical terms |
| mentions.people | array[] | Frequently mentioned people |
| mentions.projects | array[] | Frequently mentioned projects |
| mentions.organizations | array[] | Frequently mentioned organizations |
| topics.primary | array[] | Primary discussion topics |
| topics.secondary | array[] | Secondary discussion topics |
Validation Rules
Required Fields
All Idiomark files MUST contain:
idiomarkversion stringidunique identifiercreatedISO 8601 timestamppersonality.voiceobject with at leasttone.primary
Schema Validation
import { Validator } from '@idiomark/core'
const result = Validator.validate(idiomarkFile)
if (!result.valid) {
console.error('Validation failed:', result.errors)
}
Minimum Confidence Threshold
Personality dimensions with confidence < 0.5 should be excluded or marked as experimental:
{
"domains": [
{
"name": "rust",
"confidence": 0.42,
"_experimental": true
}
]
}
Version Compatibility
| Version | Changes |
|---|---|
| 1.0.0 | Initial stable release |
| 1.1.0 | Added metadata.entity.sources array |
| 1.2.0 | Added personality.knowledge.mentions.organizations |
Copyright © 2026 Idiomark Contributors
License: MIT