.mod
5 claimants
4 primary
1 secondary
shared primary (4)
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.
14.4M
total files
9.6M
first seen 2021–2025 (66.6%)
2023
median year (half its files since)
Case variants in archive: .mod (14.3M), .Mod (103.2K), .MOD (10.5K), .MoD (2), .MOd (1) — aggregated above.
Attribution status
This extension is attributed to AMPL; linux-kernel-module; Modula-2; NMODL as primary by 4 authoritative claims.
Authoritative sources: ✓ Linguist △ Pygments · secondary ✓ Wikidata · Q295250 △ Wikipedia · secondary
Claimants (10)
Languages that list
.mod among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| AMPL | wikidata | primary |
| linux-kernel-module | linguist | primary |
| Modula-2 | linguist | primary |
| NMODL | linguist | primary |
| AMPL | linguist | secondary |
| linux-kernel-module | pygments | secondary |
| Modula-2 | pygments | secondary |
| NMODL | pygments | secondary |
| xml | linguist | secondary |
| Modula-2 | wikipedia | proposed |
Wikidata says… (32)
File formats, image formats, audio codecs and other non-PL
entities that claim
.mod on Wikidata
(property P1195) or in the Wikipedia infobox.
Source: data/derived/external_extension_index.csv.
Click Use as new PL on any row to open the
Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata
URL, and this extension — one submission creates the PL + claim.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| Amiga Module Q1370814 audio tracker file format | music file format | binary:audio | audio/x-mod; application/soundapp; audio/med | — | Use as new PL ↗ |
| Executable and Linkable Format Q1343830 standard file format for executables, object code, shared libraries, and core dumps | executable file format | binary:executable | — | wp-only | Use as new PL ↗ |
| AMPL model file Q127604816 file format | file format | — | — | — | Use as new PL ↗ |
Disambiguation rules (5)
Linguist heuristics that decide, by content, which language a
.mod file actually is.| Rule | Predicts | Kind | Predicates (truncated) | Measured on SWH |
|---|---|---|---|---|
h/linguist/.mod/0 | xml | predicates | [{"kind": "any", "regexes": ["<!ENTITY "]}] | |
h/linguist/.mod/1 | NMODL | predicates | [{"kind": "any", "regexes": ["\\b(NEURON|INITIAL|UNITS)\\b"]}] | |
h/linguist/.mod/2 | Modula-2 | predicates | [{"kind": "any", "regexes": ["^\\s*(?i:MODULE|END) [\\w\\.]+;"]}] | |
h/linguist/.mod/3 | linux-kernel-module | default | [] | |
h/linguist/.mod/3 | AMPL | default | [] |
SWH-mined examples (0)
No archived examples for .mod in our local mirror yet.