HomeArtificial IntelligenceWhy Is English a Poor Programming Language for Artificial Intelligence?

Why Is English a Poor Programming Language for Artificial Intelligence?

Key Takeaways

  • English lacks formal syntax and clear boundaries, causing language models to guess unstated rules and edge cases.
  • Making generated software predictable requires deterministic checks rather than more stochastic model sampling.
  • Grammar masks, domain languages, property testing, and formal proofs turn probabilistic drafts into verified code.

How Natural Language Ambiguity Undermines Software Reliability

In 1978, Dutch computer scientist Edsger W. Dijkstra circulated a short technical note titled On the foolishness of “natural language programming” arguing that instructing machines in everyday speech would never make software easier to build. Nearly five decades later, software engineering teams using generative artificial intelligence have rediscovered his warning at industrial scale. According to the 2025 Stack Overflow Developer Survey, 84% of surveyed developers use or plan to use artificial intelligence coding tools, yet 46% actively distrust the accuracy of those outputs and only 33% trust them. Roughly 66% of respondents reported that dealing with solutions that are almost right, but not quite, is their single largest workflow frustration, and 45% said debugging generated code takes more time than expected.

The root of that frustration lies in what happens when English serves as a programming language for artificial intelligence. Human languages evolved over millennia for social negotiation, persuasion, and shared context, not for unambiguous machine execution. A sentence in English routinely supports two or three grammatical interpretations that human listeners resolve effortlessly through tone, shared history, and physical cues. Software compilers do not share human intuition. Traditional programming languages deliberately restrict vocabulary and grammar so that every valid statement maps to one exact machine behavior. As industry analysts noted in a February 2025 New Stack analysis, a programming language compiles down to executable binary instructions through fixed rules, whereas a large language model converts English prompts into numerical vectors and samples probable continuations from statistical patterns.

Six structural failure modes appear whenever organizations treat plain English as source code. First, lexical and syntactic ambiguity forces models to guess what terms such as valid user, active session, or graceful retry mean in practice. Second, human prose leaves edge cases unstated. Software reliability depends on how a program handles null inputs, network partitions, leap seconds, concurrent writes, and integer limits, yet prompts rarely enumerate those boundaries. Third, natural language does not compose cleanly. Two typed functions in a formal programming language can be connected with mathematical certainty, whereas adding one new sentence to a system prompt can quietly alter how a model interprets unrelated instructions earlier in the same text.

Fourth, natural language instructions suffer from severe semantic fragility. Renaming a local variable or adjusting indentation in formal source code leaves program behavior untouched. In contrast, minor wording adjustments in English prompts can trigger markedly different code paths. A 2026 robustness evaluation documented in an April 2026 engineering study tested seven models across eight meaning-preserving prompt rewrites and found that even the strongest performer violated semantic invariance 20.4% of the time, and the weakest violated it 73% of the time. Larger parameter counts did not solve the problem, as a 30-billion-parameter model outperformed models ten to one hundred times its size on that measure.

Fifth, English prompting creates an asymmetric verification trap. When a human programmer mistypes a statement in a statically typed language, the compiler halts immediately and points to the offending line. When a language model misinterprets an English prompt, it still emits syntactically polished code that passes casual inspection and fails later under real user traffic. As cognitive engineering research highlighted in a November 2026 New Space Economy report, this produces a heavy verification burden in which human engineers retain legal and operational responsibility for software whose logic they did not author. Sixth, unstructured prose lacks diffability and static contradiction checks. Internal testing by Amazon Web Services on its Kiro requirements analysis engine, reported in an October 2026 verification guide, uncovered contradictions, ambiguities, or missing cases in roughly 60% of first-draft human requirements before any code was written.

The table below contrasts how unstructured English prompts differ from formal programming languages across core software engineering dimensions.

Engineering DimensionNatural English PromptsFormal Programming Languages
Grammar RulesOpen-ended syntax with multiple valid readingsStrict context-free grammar with one parse tree
Edge Case HandlingImplicit and routinely guessed by modelsExplicit types, error paths, and null checks
Execution RepeatabilityProbabilistic outputs that drift across runsDeterministic compilation for identical inputs
Error DetectionPlausible but subtly flawed runtime logicImmediate compile-time and static analysis alerts
AuditabilityDifficult to diff or trace across versionsLine-by-line version control and dependency graphs

Dijkstra summarized this trap in 1978 with a sentence that remains widely quoted among software architects. Writing in EWD667, Dijkstra observed that the naturalness with which humans use native tongues boils down to the ease with which they can make statements whose nonsense is not obvious. Formal notation, he argued, was never an unnecessary obstacle imposed by primitive computers. It was a disciplined filter designed to expose flawed reasoning before a machine ever executes a command.

Why Stochastic Synthesis Requires Deterministic Verification

Discussions about making generated software more predictable often stumble over a basic piece of vocabulary. The word stochastic describes a stochastic process governed by probability distributions and random sampling rather than fixed outcomes. Making artificial intelligence software more stochastic would make it less predictable, not more. Predictable software requires determinism, meaning that identical inputs and states reliably produce identical behavior, as explained in a New Space Economy computing overview.

Resolving the tension between probabilistic models and predictable software does not require stripping neural networks of their statistical nature. Instead, modern software engineering architectures separate the development lifecycle into two distinct zones: stochastic search during candidate generation, and deterministic verification during acceptance and execution. Stochastic sampling is useful during exploration. When an agent searches for an efficient sorting routine, drafts adversarial test cases, or explores candidate proof steps, broad probabilistic sampling lets the system test creative paths that rigid rule engines would never discover.

Problems arise only when probabilistic output crosses directly into production without passing through an incorruptible mechanical filter. In traditional engineering workflows, human code review served as the primary safety gate. Generative coding tools have inverted the economics of that review model. As documented in a November 2026 New Space Economy maintenance analysis, a single developer or coding agent can produce a 2,000-line change in minutes, whereas auditing that change for race conditions, memory leaks, and architectural drift still demands hours of concentrated human focus. Google Cloud’s DevOps Research and Assessment program surveyed more than 39,000 technology professionals across its 2024 and 2025 reports and found that every 25% rise in organizational artificial intelligence adoption correlated with an estimated 1.5% dip in delivery throughput and a 7.2% drop in delivery stability when teams lacked proportional verification capacity.

The risk of unverified probabilistic outputs is sharpest in high-consequence environments. In aerospace, defense, healthcare, and financial infrastructure, a plausible hallucination is not a minor inconvenience. A November 2026 New Space Economy analysis of spacecraft systems emphasized that fluent language masks confabulated reasoning and fosters automation bias, where human operators defer to polished machine advice under time pressure. Similarly, a November 2026 legal review noted that courts are increasingly examining strict product liability frameworks for software that lacks deterministic design-safety guarantees.

To solve this, computer scientists and engineering teams across 2025 and 2026 have converged on a single organizing principle: quarantine stochasticity inside deterministic boundaries. Distributed-systems author Martin Kleppmann articulated this thesis in December 2025, arguing that a language model can hallucinate as freely as it likes during synthesis as long as a small, deterministic checker refuses every invalid candidate and forces another attempt. Across the software industry, six distinct evolution paths are turning that principle into working infrastructure.

Grammar Masks and Structured Decoding at Token Generation

The first layer of predictability operates directly inside the model inference engine before a single line of code reaches a human screen. During ordinary text generation, a language model computes a probability score for every token in its vocabulary, often exceeding 100,000 possible subwords, and samples the next token freely. Unconstrained sampling allows the model to emit broken brackets, invented field names, malformed data structures, or conversational commentary mixed into executable code.

Constrained decoding, also called grammar-guided generation, eliminates structural errors at the source by coupling the model with a formal parser during inference. At each generation step, the runtime inspects the current state of a context-free grammar or schema and masks out every token that would violate legal syntax by setting its probability to zero. Because the model can only sample from grammatically valid continuations, structural compliance reaches 100% by mathematical construction.

Early implementations of constrained decoding imposed steep latency penalties because checking stack states across an entire token vocabulary at every step slowed down graphics processor utilization. In November 2024, researchers introduced XGrammar, a structured generation engine that solved this bottleneck by partitioning model vocabularies into context-independent tokens that can be prechecked ahead of time and context-dependent tokens evaluated via a persistent pushdown-automata stack. By overlapping grammar computation with graphics processor execution, XGrammar achieved up to a 100-fold speedup over earlier approaches with near-zero serving overhead.

By 2026, grammar-guided decoding has become standard infrastructure inside production inference servers such as vLLM, alongside frameworks including Guidance and Outlines. Combined with abstract syntax tree parsers and static type checkers, grammar-constrained generation removes entire categories of superficial syntax failures and malformed tool calls.

Limits of Syntax Enforcement Alone

Constrained decoding is an essential foundation, yet it solves only the shallowest layer of software predictability. A program can obey every syntactic rule of Python, Java, or Rust and still transfer money to the wrong account, drop a security header, or deadlock under concurrent load. Syntax guarantees that a statement is well-formed, not that it is true to the user’s business intent. Moving from valid syntax to reliable behavior requires tighter constraints upstream at the specification layer and downstream at the verification layer.

Executable Specifications and Domain Languages for Narrower Risk

A second evolution path attacks the ambiguity of English before code generation even begins. During early 2025, informal chat-driven coding, popularized as vibe coding, encouraged developers to describe features loosely in conversation and accept whatever code came back. By 2026, engineering organizations shifted rapidly toward Spec-Driven Development, a discipline that treats a structured, versioned specification as the primary source of truth and regards generated code as a derived artifact that must satisfy that contract.

Rather than writing loose paragraphs in a chat window, teams author explicit requirements, technical plans, and acceptance criteria using constrained templates such as the Easy Approach to Requirements Syntax, known as EARS. Tools including GitHub Spec Kit and Amazon Web Services Kiro operationalize this workflow inside developer environments, as detailed in a September 2026 practitioner guide. In May 2026, Kiro expanded this approach by translating structured requirements into formal logic and feeding them into a satisfiability modulo theories solver, a mathematical engine that flags contradictory rules and unaddressed states before a coding agent writes a single function.

A closely related third evolution path shrinks the target language itself. General-purpose programming languages give coding agents millions of ways to express the same business rule, expanding the surface area for subtle mistakes. In a July 2026 architectural essay, software design authority Martin Fowler argued that compact, well-factored domain-specific languages dramatically improve the reliability of language models. Because a domain-specific language restricts vocabulary to legal concepts within one field, such as access-control policies, insurance calculations, or satellite scheduling rules, the language can ship with a dedicated deterministic validator.

When a coding agent generates an expression in a validated domain language, the compiler or schema checker evaluates it immediately and returns clear domain-level diagnostics rather than obscure runtime stack traces. For example, instead of crashing deep inside a database driver, the validator can report that a workflow attempted to execute an action before authenticating a client. That structured feedback loop enables autonomous generate-and-repair cycles without human guesswork. Fowler noted an important tradeoff: domain languages pay off when they remain compact enough to convey through a few examples and when the upfront cost of designing the language is amortized across repeated rules.

Property Testing and Adversarial Checks Beyond Unit Examples

Even with structured specifications and clean syntax, generated software often fails on edge cases that neither the prompt author nor conventional unit tests imagined. Traditional software testing relies heavily on example-based unit tests, where an engineer writes specific input-output pairs such as checking that sorting three numbers returns them in ascending order. When a coding agent writes both the application code and its example-based tests from the same ambiguous prompt, both artifacts frequently share the exact same blind spots.

The fourth major evolution path addresses this gap through property-based testing, a technique pioneered by the QuickCheck framework in 1999 and revitalized for artificial intelligence coding workflows in 2025 and 2026. Instead of testing isolated examples, engineers state universal invariants that must hold across all valid inputs. Examples include conservation laws in financial ledgers, round-trip consistency in data encoders, idempotency in retry handlers, and strict ordering guarantees in scheduling queues. A deterministic test engine then generates thousands of randomized and adversarial inputs designed to falsify those properties, automatically shrinking any failing input down to the smallest counterexample.

Empirical results highlight why property-based testing pairs effectively with probabilistic code synthesis. A 2025 study presented at the Object-Oriented Programming, Systems, Languages, and Applications conference, summarized in an April 2026 technical review, found that each property-based test discovers approximately 50 times as many mutant bugs as an average unit test. A separate evaluation showed that example-based tests and property-based tests catch distinct classes of defects, with combining both methods lifting bug detection rates from 68.75% to 81.25%.

In January 2026, Anthropic published research demonstrating how coding agents can infer general behavioral properties from existing codebases and execute automated property-based fuzzing to uncover hidden defects. Paired with deterministic simulation harnesses that inject synthetic network delays, disk faults, and concurrency interleavings under reproducible random seeds, property-based testing converts vague questions about code quality into mechanical checks that an agent can iterate against autonomously. Similar hybrid architectures combining static analysis, dynamic fuzzing, and symbolic execution are also reshaping automated software security discovery.

Formal Verification and Machine Checked Proofs for Generated Code

Testing, even at massive scale, can only prove the presence of bugs across sampled inputs; it cannot guarantee their absence across every possible input. The fifth and most rigorous evolution path brings formal verification, the mathematical proof that a program satisfies its specification for every valid input, into mainstream software development.

For decades, formal verification remained confined to aerospace flight controllers, cryptographic primitives, and operating system kernels because writing machine-checked proofs by hand was prohibitively expensive. Proving the correctness of the seL4 operating system microkernel, consisting of roughly 8,700 lines of C code, required approximately 20 person-years of specialist proof labor. Generative models are collapsing that economic barrier. In September 2025, researchers introduced a benchmark for vericoding, coining the term to contrast formally verified program synthesis against informal vibe coding. The benchmark spans 12,504 formal specifications across three leading verification ecosystems: Dafny, Verus for Rust, and Lean 4.

Vericoding exploits a fundamental asymmetry between generating code and verifying proofs. Writing a mathematical proof requires creative search through a vast space of lemmas and tactics, a task well suited to stochastic neural networks. Checking whether a finished proof is valid requires only a small, deterministic kernel that mechanically applies axioms of logic. If a language model hallucinates a flawed step, the proof checker rejects it immediately with zero tolerance. Hallucinations cost extra compute retries rather than production outages.

Production milestones across 2026 show how rapidly this approach is scaling beyond academic puzzles. Off-the-shelf language models already succeed on roughly 82% of tasks in standard Dafny verification benchmarks, according to an October 2026 formal verification guide. In October 2026, Karate Labs reported on work in which Anthropic’s Claude proved 239 fuzz entry points across 123 open-source C libraries crash-free for all inputs under 64 megabytes, generating roughly 180 million lines of proof artifacts checked in the Rocq proof assistant against compiled binaries and uncovering hundreds of real bugs along the way. Lightweight deductive verifiers for mainstream languages are also emerging, including VeGo, an October 2026 verification system built specifically to bound generated Go code. Capital has followed the technical progress, with formal-proof startups such as Harmonic and Axiom raising over half a billion dollars combined in 2026, as noted in a March 2026 engineering field report.

Checking the Checker and Scope Boundaries

Formal verification does not eliminate every source of software failure. A mathematical proof establishes only that code matches its written specification under stated hardware and runtime assumptions. As a November 2026 formal verification primer highlighted, security researchers using frontier models in July and August 2026 even uncovered soundness flaws inside the C++ kernel of Lean itself, prompting rapid fixes and cross-checking across independent verifier kernels. Formal proofs also remain concentrated on parsers, compilers, cryptography, and distributed protocols rather than sprawling business workflows, user interfaces, and third-party web integrations.

Compiled Workflows and Deterministic Harnesses in Production

The sixth evolution path focuses on what happens after software is built and deployed into live operations. Many early enterprise agent deployments invoked a language model dynamically at every step of a business workflow, asking the model to decide which database to query, how to transform records, and which external service to call on every single customer request. Running probabilistic inference inside hot execution paths compounds latency, inflates inference bills, and introduces unpredictable runtime drift even when model temperatures are set to zero.

To restore runtime predictability, systems engineers are shifting toward Compiled AI architectures. In a compiled workflow, the language model operates at design time or compile time rather than on every live transaction. Given a structured goal and pre-validated templates, the model synthesizes static, deterministic code and explicit state machines that pass through sequential security, syntax, sandboxed execution, and golden-dataset accuracy gates before deployment, a pipeline detailed in New Space Economy’s software maintenance analysis. Once compiled and verified, the production workflow runs as ordinary deterministic software with predictable latency and full auditability.

For tasks that still require live agentic reasoning, teams are wrapping models inside strict software harnesses. As discussed in a November 2026 New Space Economy essay on machine process, a surrounding harness turns one-shot text generation into a structured trial-and-error loop grounded in real tool feedback. Standards such as the Model Context Protocol, highlighted in a November 2025 deterministic coding guide, allow agents to invoke deterministic static analyzers, refactoring engines, and compilers rather than attempting to edit complex codebases purely through probabilistic text prediction. Emerging repository daemons such as Nidus, published in April 2026, push this boundary further by enforcing verification before persistence: candidate code mutations are compiled and checked in memory and rejected before they can ever be committed to a shared version-control log.

Comparing Evolution Paths and the Human Specification Bottleneck

No single mechanism delivers universal reliability across every category of software. Grammar-constrained decoding imposes almost no overhead and belongs in nearly every serving stack, whereas full mathematical proofs demand substantial upfront modeling effort and make economic sense primarily on compact, high-stakes components. Engineering organizations increasingly adopt these six paths as a layered ladder, starting with strong static types and grammar constraints, adding property-based tests and spec-driven contracts for business logic, and reserving formal proofs for core parsers, ledgers, and authorization engines.

The table below compares the six evolution paths across what each constrains, representative tools active in 2025 and 2026, the predictability guarantee provided, and best-fit workloads.

Evolution PathRepresentative ToolsPredictability GuaranteeBest-Fit Workload
Constrained DecodingXGrammar, Guidance, Outlines, vLLMComplete syntactic and schema validityTool calling, data schemas, structured configs
Spec-Driven DevelopmentGitHub Spec Kit, AWS Kiro, EARSLower ambiguity and early contradiction checksMulti-team enterprise and long-lived services
Typed Domain LanguagesEmbedded domain languages, CedarCompile-time domain rule enforcementAccess policies, billing rules, workflow logic
Property-Based TestingHypothesis, QuickCheck, Claude PBTHigh invariant coverage across edge inputsBusiness logic, stateful interfaces, migrations
Vericoding ProofsDafny, Verus, Lean 4, Rocq, VeGoMathematical proof across all valid inputsParsers, cryptography, kernels, custody
Compiled AI WorkflowsCompiled AI, MCP, NidusReproducible, auditable runtime executionRegulated automation and high-volume pipelines

Even as automated proving and testing accelerate, empirical evidence from 2026 exposes one stubborn bottleneck that technology has not removed: writing accurate specifications from human intent. A June 2026 study evaluated 30 language models tasked with translating natural-language descriptions into Temporal Logic of Actions specifications, a formal language widely used for distributed systems. Across open-weight runs reported in the October 2026 formal verification team guide, the strongest prompting strategy produced specifications that merely parsed 26.6% of the time and passed model checking only 8.6% of the time.

Production teams observe the same inversion in daily work. In March 2026, engineers at Datadog reported that writing formal invariants and verification specifications required two to three times the effort of writing the underlying implementation code. Proving that code satisfies a rule is becoming cheap and automated, yet deciding precisely what the system must and must not do remains an irreducibly human responsibility. As a New Space Economy report on misplaced trust cautioned, automated fluency does not substitute for human judgment about real-world consequences. When software engineers stop typing routine boilerplate, their most valuable skill shifts toward defining exact domain invariants, spotting unstated edge conditions, and building the mechanical checks that hold probabilistic agents accountable.

Summary

English fails as a programming language for artificial intelligence because natural language trades precision for social flexibility, leaving edge states implicit, breaking composability, and turning subtle misunderstandings into plausible but defective code. Improving the reliability of generated software does not mean making software more stochastic; it means confining stochastic exploration inside deterministic boundaries. Across 2025 and 2026, six complementary engineering paths have emerged to build those boundaries: grammar-constrained decoding for structural validity, spec-driven development for clear requirements, compact domain languages with built-in validators, property-based testing for adversarial behavioral coverage, machine-checked formal proofs for mathematical certainty, and compiled harnesses for reproducible runtime execution. Together, these methods invert the verification burden by allowing small, trusted checkers to reject flawed model outputs automatically. Yet cheap automated proofs do not close the gap between what stakeholders want and what gets specified. As code generation becomes abundant, precise human specification and disciplined verification engineering become the primary foundations of trustworthy software.

YOU MIGHT LIKE

WEEKLY NEWSLETTER

Subscribe to our weekly newsletter. Sent every Monday morning. Quickly scan summaries of all articles published in the previous week.

Most Popular

Featured

FAST FACTS