.yml

4 claimants 1 primary 3 secondary unambiguous primary

SWH popularity

Distinct files in the full Software Heritage archive (2026-06-04 export), dated by first appearance, following Desmazières, Di Cosmo, Lorentz (MSR 2025). Case-aggregated. citation.

199.9M
total files
117.5M
first seen 2021–2025 (58.8%)
2021
median year (half its files since)

Case variants in archive: .yml (199.9M), .YML (1.5K), .Yml (95), .ymL (44), .YMl (3), .yML (3), .yMl (1) — aggregated above.

Attribution status

This extension is attributed to YAML as primary by 2 authoritative claims.

Authoritative sources: ✓ Linguist △ Pygments · secondary ✓ Wikidata · Q281876 ✗ Wikipedia · no claim

Disagree or have a correction? Open a labelling issue.

Claimants (9)

Languages that list .yml among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
YAMLlinguistprimary
YAMLwikidataprimary
MiniYAMLlinguistsecondary
MiniYAMLpygmentssecondary
OASv2-yamllinguistsecondary
OASv2-yamlpygmentssecondary
OASv3-yamllinguistsecondary
OASv3-yamlpygmentssecondary
YAMLpygmentssecondary

Disambiguation rules (4)

Linguist heuristics that decide, by content, which language a .yml file actually is.
RulePredictsKindPredicates (truncated)Measured on SWH
h/linguist/.yml/0MiniYAMLpredicates[{"kind": "any", "regexes": ["^\\t+.*?[^\\s:].*?:"]}, {"kind": "not_any", "regexes": ["---"]}]
h/linguist/.yml/1OASv2-yamlpredicates[{"kind": "any", "regexes": ["swagger:\\s?'?\"?2.[0-9.]+'?\"?"]}]
h/linguist/.yml/2OASv3-yamlpredicates[{"kind": "any", "regexes": ["openapi:\\s?'?\"?3.[0-9.]+'?\"?"]}]
h/linguist/.yml/3YAMLdefault[]

SWH-mined examples (0)

No archived examples for .yml in our local mirror yet.

Need an archived example for this extension?
No verbatim file with extension .yml in our local SWH mirror yet. Submit a sample-mining request and a maintainer will run swh_extension_mining.py against the live archive for this extension; samples land here once the run completes.
(or open the pre-filled issue directly)