# Dialect Resolution

> Resolve a filename whose extension a dialect names by splitting its stem at that case's word boundaries, taking the longest trailing word run that is a declared tag as the concern and the leading words as the subject and an optional declared variant.

Record: `algorithms:dialect-resolution`
Kind: algorithm
Canonical: https://banes-lab.com/ontology/algorithms#algorithms-dialect-resolution
Closure: https://banes-lab.com/json/records/algorithms/dialect-resolution/closure

Listed in [Algorithm contracts](https://banes-lab.com/api/records/algorithms.md), after [Export Triage Ladder](https://banes-lab.com/records/algorithms/export-triage-ladder.md) and before [Alignment Cadence](https://banes-lab.com/records/algorithms/alignment-cadence.md).

## Domain

- [Taxonomy](https://banes-lab.com/records/algorithms-domain/taxonomy.md)

## Stage

- [project](https://banes-lab.com/records/stage/project.md)

## Axis

- [reasoning](https://banes-lab.com/records/reasoning/axis-reasoning.md)

## Tier

- [process](https://banes-lab.com/records/vocabulary/domain-tier-process.md)

## Principle

- [Case Dialect](https://banes-lab.com/records/architecture/case-dialect.md)

## Math type

- [Algebra](https://banes-lab.com/records/reasoning/math-type-algebra.md)

## Force

- [Contract compatibility](https://banes-lab.com/records/force/contract-compatibility.md)
- [Semantic consistency](https://banes-lab.com/records/force/semantic-consistency.md)

## Linked from

- [Taxonomy / Classification / Naming](https://banes-lab.com/ontology/principles/architecture-category-taxonomy-classification-naming.md)
- [The derivation loop](https://banes-lab.com/ontology/reasoning/reasoning-loop-derivation-loop.md)
- [The axes](https://banes-lab.com/ontology/reasoning/the-axes.md)
- [The mathematics](https://banes-lab.com/ontology/reasoning/the-mathematics.md)
- [Domain tiers](https://banes-lab.com/ontology/schema/the-vocabulary-domain-tier.md)
- [The forces](https://banes-lab.com/ontology/schema/the-forces.md)

## Evidence in the code

- [parseDialect](https://banes-lab.com/source/governance/shared/matchers/filename.matcher.ts.md)
