
Academic Code: The Guide Nobody Wrote for You
There is a familiar moment in every researcher's life. You are sitting in front of your data, you realize you need to do something with it, and you discover that Excel is no longer enough. Maybe you need to loop through ten thousand records on Crossref. Maybe you need to build a citation network graph. Maybe you just need a formula that does not break when someone adds a column. At that moment, whether you know it or not, you become a code writer.
The problem is that nobody teaches researchers how to write code. There are courses on statistics, courses on methodology, but "how to write a Python script that won't fall apart in two weeks" is not on any syllabus. The result: thousands of researchers around the world write code that works, but doesn't really work. Code that runs today but can't be reproduced tomorrow. Code that swallows errors silently instead of screaming. Code that someone else (or you, six months from now) won't be able to read.
This guide is here to change that. We won't teach you to program; there are other places for that. We'll teach you to write academic code properly, and show you how Kulmus Lite, our free tool, catches exactly the kind of mistakes researchers make.
Data and Statistics
Python
Probably the first language you'll encounter. It's popular, readable, and has libraries for everything: pandas for data, matplotlib for graphs, scikit-learn for machine learning. The problem? Python is very sensitive to things that look harmless. Comparing to None with == instead of is None. A bare except block that swallows errors silently. An old-style print without parentheses that breaks in Python 3. Kulmus Lite catches all of these and suggests the correct fix according to PEP 8, Python's official style guide.
When will a researcher use it? Data processing, statistical analysis, machine learning, pulling data from APIs, anything that needs a script.
R
The language of statisticians. If you work with statistical models, ANOVA, or regression, chances are you write R. The classic trap: comparing to NA with == returns NA instead of TRUE or FALSE, which produces silent, wrong results. Another one: the shortcuts T and F instead of TRUE and FALSE look harmless, but in R you can overwrite them (yes, someone can write T <- FALSE and break everything). Kulmus Lite warns about this.
When will a researcher use it? Statistical models, ANOVA, visualization with ggplot2, bioinformatics.
SAS
Still alive and kicking, mostly in large bureaucracies, pharmaceutical companies, and national statistics bureaus. Its syntax is old and full of traps: every statement must end with a semicolon, macro variables don't resolve inside single quotes, and DATA and PROC blocks require explicit closure with RUN; or QUIT;. Kulmus Lite knows all of these.
When will a researcher use it? Clinical trials, population surveys, regulatory work (FDA, EMA), anywhere SAS is institutionally required.
SQL
Not a programming language in the traditional sense, but a query language. Yet almost every researcher who works with databases writes SQL. The classic mistake: WHERE doi = NULL instead of WHERE doi IS NULL. In SQL, comparing to NULL with = returns UNKNOWN, not TRUE or FALSE, which causes rows to disappear silently. Kulmus Lite also catches SELECT * (risky for reproducibility) and DELETE without WHERE (which deletes the entire table).
When will a researcher use it? Any work with databases: pulling data from institutional repositories, managing research databases, queries in BigQuery or PostgreSQL.
Code, Graphs, and Formalization
JavaScript
It looks like a language with no place in academia, but it's everywhere: interactive visualizations with D3.js, browser-based research tools, automation scripts. The main problem: loose comparison with == that performs type coercion (meaning "0" == false returns true, which is almost never what you wanted). And var, which gives function-level scope instead of block-level, creating subtle bugs. Kulmus Lite points you to const and let and the strict ===.
When will a researcher use it? Interactive visualizations, browser tools, Observable notebooks, text processing.
TypeScript
JavaScript with types. The move for a researcher who wants more reliable code. But TypeScript full of any is just JavaScript in a costume. Kulmus Lite detects use of any and suggests defined interfaces. It also catches unnecessary @ts-ignore, which is another form of "shut up and work."
When will a researcher use it? Large code projects, research libraries, tools with interfaces.
Lean
A formal proof language. If you work in pure mathematics or formal verification, Lean lets you write proofs that the computer verifies. The problem: sorry, a tactic that says "I know the proof isn't finished, move on." A sorry left in code is like a paper with a footnote that says "need to verify this at some point." Kulmus Lite flags every sorry as an error.
When will a researcher use it? Verified mathematical proofs, formal verification, computational logic.
Cypher
The query language for Neo4j, a graph database. If you work with networks (social, citation, historical), you're probably writing Cypher. Same null trap as SQL, plus the danger of MATCH without WHERE or LIMIT that scans the entire graph and may tank performance or return a hundred thousand nodes.
When will a researcher use it? Network analysis, knowledge graphs, citation networks, social network analysis and historical network analysis.
Documents, Markup, and Data Structures
LaTeX
The king of research documents. With all due respect to Word, when you need mathematical formulas, managed bibliography, and a perfect PDF, LaTeX is the tool. But it's also unforgiving: an unescaped percent sign (%) turns the rest of the line into a comment. An unbalanced dollar sign ($) breaks the entire math mode. Empty \ref{} or \cite{} produce question marks (??) in the output. Kulmus Lite detects mismatched \begin/\end environments, unbalanced dollar signs, and empty sensitive commands.
When will a researcher use it? Papers, theses, scientific reports, Beamer presentations, any academic document with formulas.
XML and TEI
Markup standards for structured documents. TEI (Text Encoding Initiative) is the standard for encoding academic texts, mainly in digital humanities. The problems: an unencoded ampersand (&) that breaks parsing, unquoted attribute values, and open tags without a closing tag. Kulmus Lite tracks the tag stack and detects nesting mismatches.
When will a researcher use it? Digital humanities, critical editions, digital archives, linguistic corpora.
JSON
The most common data interchange format today. Every API, every configuration file, every modern system uses it. But JSON is strict: no comments (// is illegal), only double quotes (single quotes are rejected), and no trailing comma before a closing bracket. Mistakes like these cause a full parsing failure. Kulmus Lite catches them all.
When will a researcher use it? Configuration files, API responses, datasets, anywhere that requires structured data.
YAML
"Readable JSON," used mainly for configuration files. Looks simple, but full of traps: Tabs are forbidden (spaces only), duplicate keys silently overwrite previous values, and text containing a colon followed by a space (:) requires quotes. Kulmus Lite detects all of these, including duplicate keys that most editors ignore.
When will a researcher use it? Configuration files, GitHub Actions, Docker Compose, CI/CD settings, project metadata.
Diagrams and Automation
Mermaid
A text-based diagramming language. Instead of drawing in draw.io, you write code that translates to a diagram: flowchart TD, sequenceDiagram, classDiagram. The most common mistake: a single arrow (->) instead of a double arrow (-->), and labels with brackets that aren't wrapped in quotes. Kulmus Lite also detects invalid diagram headers.
When will a researcher use it? Flowcharts, sequence diagrams, class diagrams, any diagram that needs to sit inside a Markdown document or paper.
n8n
A visual automation tool that produces JSON workflow files. Researchers use it for automatic data collection, source monitoring, pulling from APIs, and scheduling scripts. Kulmus Lite detects nodes with duplicate names, empty type fields, and missing connections.
When will a researcher use it? Data pipelines, automated information gathering, source monitoring, periodic API pulls.
GitHub Actions
YAML files that define automated workflows. For reproducible research, they let you re-run an analysis on every code change, build a PDF automatically from LaTeX, and publish results. Kulmus Lite detects Tabs (forbidden in YAML), outdated action versions, and missing required keys like runs-on.
When will a researcher use it? Reproducible research, CI/CD for research projects, automated document builds, automated testing.
How Kulmus Lite Works
Kulmus Lite runs entirely in your browser. No server, no API, no sending your code anywhere. This isn't just a matter of convenience; it's a matter of trust: your code stays with you.
The workflow is simple: pick a language from the tabs at the top (or paste code and the tool detects the language automatically), and the tool scans in real time. Errors appear as red markers next to line numbers, improvement suggestions in orange. In the adjacent column, margin comment cards show detailed explanations and recommended syntax examples.
When you're done, you can export the file with annotations embedded in the language's own comment syntax, so the annotations don't break execution. For JSON files, annotations go into a separate metadata block that doesn't affect parsing.
The Lite version is limited to 500 lines. Enough for a research script, a query, a LaTeX template, or a diagram.
Why This Matters
Reproducible research isn't just data that's publicly available. It's also code that can be read, run, and understood. A small syntax error, an == None that silently filters rows, an empty \ref{} that turns into question marks in a published paper, a trailing comma in JSON that crashes a data pipeline: all of these happen every day to excellent researchers who simply weren't trained to write code.
Kulmus Lite doesn't turn you into a programmer. It turns the code you already write into better code.
Want to see this on your own paper? Run a check. Free during the launch period.
Sign up See a sample reportGet the blog by e-mail
One new post a week, straight to your inbox. No spam, and you can leave with one click.
We will send you a confirmation e-mail. Your address is used only to send the blog. Privacy policy
More guides
- How to read a similarity report
- How to write an introduction (that makes the reader keep reading)
- How to write a literature review (that isn't a shopping list)
- How to write a methodology chapter (that someone else could repeat)
- How to write the results and discussion chapters (and why you keep them apart)
- Basic bibliographic literacy: how to build a reference in any citation style
- How to cite AI in a seminar paper (without losing your mind)
- How to disclose the use of AI in a research paper
- Citation or plagiarism? Where the line runs