Grammar-Based Method Matches or Outperforms AI in Authorship Analysis

A new study from the University of Manchester challenges the assumption that complex AI always produces better results for language analysis tasks. Researchers led by Dr. Andrea Nini developed LambdaG, a grammar-based method for authorship verification that performs comparably to or better than advanced AI systems.
How LambdaG Works
LambdaG analyzes patterns in grammar rather than relying on large-scale machine learning models. It builds a statistical profile of individual writing styles by measuring features including:
- Function word usage (words like "it," "of," and "the")
- Sentence structure
- Punctuation patterns
- Other grammatical habits
The researchers describe these features as creating a distinctive behavioral signature for each writer, similar to how individuals develop unique handwriting or walking patterns.
Performance Results
The study tested LambdaG across 12 real-world writing datasets designed to reflect practical scenarios:
- Emails
- Online forum posts
- Consumer reviews
In most cases, LambdaG achieved higher accuracy than several established authorship verification systems, including neural network-based approaches. The method matched or exceeded leading AI systems across most test datasets.
Key Advantages Over AI Systems
While many current authorship verification systems rely on complex AI models trained on vast datasets, LambdaG offers several practical benefits:
- Greater transparency: Shows which grammatical patterns informed decisions, unlike many AI models that operate as black boxes
- Lower computational cost: Doesn't require the extensive computing resources of large AI models
- Explainability: Provides clear explanations for conclusions, making it suitable for high-stakes settings like legal investigations
Potential Applications
The researchers identify several practical use cases for the method:
- Forensic linguistics
- Criminal investigations
- Online abuse detection
- Academic integrity monitoring
Dr. Nini notes: "There's a growing assumption that you need complex AI to solve problems like authorship analysis, but our findings show that isn't necessarily the case. By grounding our approach in the science of how language actually works, we can achieve results that are just as good — and often better — while being more transparent."
The study was published in Humanities and Social Sciences Communications with DOI: https://doi.org/10.1057/s41599-025-06340-3.
📖 Read the full source: HN AI Agents
👀 See Also

Claude-Code v2.1.88 Release: Flicker-Free Rendering, Permission Hooks, and Critical Fixes
Claude-Code v2.1.88 introduces a flicker-free rendering option via CLAUDE_CODE_NO_FLICKER=1, adds a PermissionDenied hook for auto mode retries, and fixes memory leaks, crashes, and rendering issues across Windows, macOS, and Linux terminals.

Claude Code v2.1.83 adds managed settings fragments, transcript search, and security improvements
Claude Code v2.1.83 introduces a managed-settings.d/ directory for team policy fragments, transcript search with / and n/N navigation, and CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1 to strip credentials from subprocess environments. The release also includes CwdChanged/FileChanged hooks, sandbox.failIfUnavailable setting, and fixes for macOS exit hangs, UI freezes, and memory leaks.

Setting Up Subagents in OpenClaw: Key Considerations
Users experimenting with OpenClaw are facing issues with setting up subagents, particularly when modifying JSON files.

Claude Code bug: automatic git reset destroys uncommitted changes every 10 minutes
Claude Code version 2.1.87 performs git fetch origin + git reset --hard origin/main on the user's project repository every 10 minutes via programmatic git operations, silently destroying all uncommitted changes to tracked files. The issue was closed as 'not planned' by Anthropics.