.bi

2 claimants 1 primary 1 secondary unambiguous primary

SWH popularity

From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.

82.7K
total occurrences
12.9K
since 2019 (15.6%)
1999–2023
years active

Case variants in archive: .bi (81.0K), .BI (919), .bI (628), .Bi (116) — aggregated above.

Attribution status

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

Authoritative sources: ✓ Linguist ✗ Pygments · no claim ✓ Wikidata · Q195929 ✗ Wikipedia · no claim

Disagree or have a correction? Open a labelling issue.

Claimants (3)

Languages that list .bi among their extensions. Strength reflects whether the upstream source treated it as their primary extension.
LanguageSourceStrength
FreeBASIClinguistprimary
FreeBASICwikidataprimary
QuickBASIClinguistsecondary

Wikidata says… (3)

File formats, image formats, audio codecs and other non-PL entities that claim .bi 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.
Right entry isn't listed? Add manually ↗
FormatClass (Wikidata P31)Suggested labelMIMENotesAction
FreeBASIC Q195929
compiled programming language
free software; programming languageUse as new PL ↗
FreeBASIC Header File Q127378243
file format
file formatUse as new PL ↗
Microsoft Visual Basic Include file Q122463531
file format
file formatUse as new PL ↗

Disambiguation rules (3)

Linguist heuristics that decide, by content, which language a .bi file actually is.
RulePredictsKindPredicates (truncated)
h/linguist/.bi/0FreeBASICpredicates[{"kind": "any", "regexes": ["(?i)^[ \\t]*#(?:define|endif|endmacro|ifn?def|include|lang|macro|pragma)(?:$|\\s)", "(?i)^[ \\t]*dim( shared)? [a-z_][a-z0-9_]* as [a-z_][a-z0-9_]* ptr"]}]
h/linguist/.bi/1FreeBASICpredicates[{"kind": "any", "regexes": ["(?i)^[ \\t]*return "]}, {"kind": "not_any", "regexes": ["(?i)[ \\t]*gosub "]}]
h/linguist/.bi/2QuickBASICpredicates[{"kind": "any", "regexes": ["^[ ]*(CONST|DIM|REDIM|DEFINT|PRINT|DECLARE (SUB|FUNCTION)|FUNCTION|SUB) ", "(#|$)lang:?\\s*\"?qb\"?", "(?i)'\\$INCLUDE:", "(?i)^[ ]*CLS[ ]*('|:|\\r|\\n)", "(?i)^[ ]*OPTIO

SWH-mined examples (2)

Real archived programs with this extension, byte-verified against the SWH archive. Useful for deciding what this extension actually is when the attribution is uncertain.
GPIPATH.BI · 1596 B · seen 1× in SWH
predicted: QuickBASIC via heuristic
swh:1:cnt:c52cbf956619cf48c8a2a4a917d14591ad8aaf1a;origin=https://github.com/OS2World/DEV-SAMPLES-BASIC-OS2_Toolkit_MS_Basic;anchor=swh:1:rev:f15e5e1359b9b218a1e7459c0b7fdcc3c699fa8c;path=/GPIPATH.BI
Open in SWH · Raw bytes
WININPUT.BI · 5483 B · seen 1× in SWH
predicted: QuickBASIC via heuristic
swh:1:cnt:bea361e2a4706346d8c12899e1f61cfd60ff8c6f;origin=https://github.com/OS2World/DEV-SAMPLES-BASIC-OS2_Toolkit_MS_Basic;anchor=swh:1:rev:f15e5e1359b9b218a1e7459c0b7fdcc3c699fa8c;path=/WININPUT.BI
Open in SWH · Raw bytes
Request more SWH-mined examples
If the examples above don't disambiguate what .bi is, request a fresh mining run.
(or open the pre-filled issue directly)