ICD-10 Parody Generator

2017-09-13

Abstract

This page describes a small generator that produces parody ICD-10 style diagnoses by combining grammar rules, token lists and fixed HTML templates. The output imitates the format of official diagnostic manuals while remaining entirely synthetic.

Introduction

The aim of the generator is to spoof the structure of ICD-10 by producing mock diagnostic codes and fabricated descriptions. It blends predefined phrase lists with lightweight grammar expansion to create plausible-looking, but meaningless, medical entries. The design follows the general idea of grammar-driven text generators, including earlier systems such as SCIgen.

Methods

The generator uses a modified SCIgen-style grammar (scipsyrules.in), token sets such as ICD_ELL, and a rendering template defined in scipsy.in. When invoked, a rule is chosen, expanded and inserted into an HTML frame labelled IGD-10. Structural cues from SCIgen-inspired grammars guide the combinations, while a small PHP script increments a counter stored in countlog.txt to track the number of generated pages.

Results

Each page load produces a unique ICD-like diagnosis with a code, a synthetically generated title and a short descriptive paragraph. Because the underlying grammar allows extensive recombination, the system can generate a wide variety of spoofed disorders, all formatted to resemble entries from the real ICD-10 documentation.

Discussion

The generator highlights how diagnostic authority often stems from formatting, regularity and predictable syntactic patterns. By reusing these structures, even absurd combinations of tokens can appear superficially legitimate. The system demonstrates how small grammar engines can repurpose the stylistic machinery of technical texts for parody and creative misuse.

Appendix: Selected File Extracts

icd_elle

ICD_ELL aktuell
ICD_ELL bakteriell
ICD_ELL emosjonell
ICD_ELL funksjonell
ICD_ELL heteroseksuell

scipsyrules.in

DIAGNOSE ICD_A
DIAGNOSE ICD_P ICD_F
DIAGNOSE ICD_P og ICD_P ICD_A

index.php (counter)

$d = fopen("countlog.txt","r");
$c = fgets($d,1000) + 1;
fclose($d);
$d = fopen("countlog.txt","w");
fwrite($d,$c);
fclose($d);

References

ICD-10 Parody Generator. (2025). Retrieved from https://app.eipi.dev/icd

SCIgen. (2024). SCIgen — An automatic computer science paper generator. Retrieved from https://en.wikipedia.org/wiki/SCIgen

SCIgen Project. (2024). Source code repository. GitHub. Retrieved from https://github.com/strib/scigen




Home | Privacy Policy