How to Detect AI-Generated Text: Features and Rewriting Methods
This article breaks down why some text reads as AI-generated and how to rewrite it. It frames the so-called "AI flavor" as a statistical style rather than a single flaw, and shows that balanced sentence patterns are its most telling signal. It explains the training, decoding, and alignment mechanisms that make these patterns so frequent and so hard to correct, catalogs concrete red flags across sentence, vocabulary, structure, stance, and evidence, and turns those observations into quantifiable metrics with sample Python code. It then presents an engineering workflow that packages writing standards into a reusable, auto-loaded skill file, and closes with four practical principles for detection and rewriting. Readers come away with a checkable, reusable system for spotting and fixing AI-style writing.
1. Introduction: The “AI Flavor” Is a Describable Statistical Style
The so-called “AI flavor” is essentially a statistical style: balanced sentence structures, abstract wording, complete organization, and moderate positions. Each feature is normal on its own; only when they pile up densely does the text start to feel mechanical.
What readers sense as “off” usually comes from two sources: low information density and weak individual judgment. The text reads smoothly, covers everything, and contains no obvious errors, yet once you close it you cannot recall a single concrete conclusion.
Among all these features, the balanced sentence is the most representative. It appears frequently, is largely independent of the actual meaning, and is costly to fix — often one sentence is enough to expose where the text came from.
Judging whether text is AI-generated cannot rely on a single feature. Balanced sentences closely resemble ordinary parallel structures and mature official writing, so detection needs “multiple features combined + contextual constraints.” This article’s approach is:
- First, explain from a mechanism perspective why AI favors balanced sentences and why they are hard to correct;
- Then, build a detection system that is checkable, quantifiable, and reusable.
2. Balanced Sentences: Why They Are the Most Typical AI Trace
2.1 What Is a Balanced Sentence
A balanced sentence has two clauses with similar structure and equal or complementary meaning, deliberately presenting an impression of being “comprehensive and safe.” Common forms are shown in the table below.
| Pattern | Typical form | Common context |
|---|---|---|
| Progressive | not only… but also…; not just… but… | emphasizing the dual value of a conclusion |
| Coordinative | both… and…; need to… as well as… | listing goals or requirements |
| Contrastive | while…, also…; however,… | flagging risks or limitations |
| Juxtaposed | on one hand… on the other hand…; not… but rather… | developing a dialectical analysis |
| Conditional | only… can…; only when… | summarizing and elevating at the end |
Balanced sentences are not wrong in themselves. They appear heavily in public speeches, policy interpretation, and product launches, and professional writers also use them to strengthen rhythm and persuasiveness. The problem with AI is the frequency and distribution: the same pattern recurs within a single paragraph or even across an entire article, and “two-sided statements” unrelated to the specific content are mechanically copied, diluting conclusions into “both have a point.”
A quick test is the “delete-the-second-half test”: if removing the second clause causes no noticeable loss of information, that clause mainly serves a balancing function rather than adding information.
2.2 Causes: A Three-Layer Mechanism
Balanced sentences appear so often because training objectives, architectural traits, and alignment preferences combine.
First, the core training goal of a language model is to predict the next token. The model does not understand the value of “being comprehensive”; it only learns from large corpora which expressions are most likely to be written next.
Internally, generation can be understood as a layer-by-layer transformation of token probabilities:
- The base model outputs a raw distribution, ordered high to low as (p_0 \ge p_1 \ge p_2 \ge \dots), where (p_0) is the most likely token. If the model is already inclined to say “this is not only… but also…”, then the probability of “but also” is higher than other options such as “therefore.”
- After a decoding strategy (such as temperature sampling) adjusts it, the probabilities redistribute. If we again order them high to low as (q_0 \ge q_1 \ge q_2 \ge \dots), then when the temperature is below 1, the gap between high-frequency candidates widens further.
- If there are (k) candidates nearly equivalent to “but also,” their combined probability is high, yet each one individually is lower than “therefore.” Sampling then tends to fall into these near-synonym candidates.
At this point the model may degrade to (q_0 = q_1), and greedy decoding cannot tell the two apart. The final result then depends on tokenization, contextual triggers, or random sampling, making it unstable. This shows that when high-probability candidates are close to one another, a balanced sentence is actually more likely to be triggered.
Second, decoding strategies are biased toward being conservative. The lower the sampling temperature, the closer the output drifts to the high-probability expressions the model considers “safest” — and these are often the safe, formulaic sentence patterns.
Perplexity in the decoding stage measures how “surprising” the text is to the model, roughly understood as the model’s average candidate range for prediction:
- A lower value means the text is closer to what the model expects;
- A higher value means the wording and syntax surprise the model more.
Therefore, text with notably low perplexity and a highly uniform sentence-length distribution usually carries strong machine-generation traces.
Third, the preference feedback in the alignment stage reinforces “covering both sides.” In alignment processes such as reinforcement learning from human feedback, annotators score “thorough, impartial” answers higher, and this preference is amplified through training into the model’s default output style.
The architecture matters too: the self-attention mechanism is naturally good at capturing echoing and contrasting relationships, and parallel structures are low-cost in modeling long-distance dependencies. As a result, cross-clause echoes like “not only… but also…” become the pattern the model reuses most easily and at the lowest cost.
2.3 Why They Are the Hardest to Correct
The stubbornness of balanced sentences comes from “generation as constraint”:
- A human writer first sets an outline, adjusts while writing, and always keeps the whole picture in view.
- A model generates autoregressively; once “not only” appears, “but also” is almost the only natural continuation in probability terms.
- Every subsequent token is conditioned on what has already been generated, so a local edit cannot break the structure at its root.
Even if a user asks the model “don’t write balanced sentences,” the model may not understand what counts as one. It might drop “not only… but also…” and switch to equivalent expressions like “while…, also…” or “is both… and…,” producing the phenomenon of “the more you edit, the more it looks like AI.” Therefore, correcting balanced sentences must start from the rule level rather than the word level, which section 5 develops further.
3. A Catalog of Typical AI Writing Tics
The phrasings below are compiled from common AI writing samples in public discussions and are empirical generalizations.
3.1 Sentence Level
- Forced parallelism: parallel elements are deliberately matched in count and character length, such as a triple like “boost efficiency, cut costs, control risk,” with no corresponding facts behind it.
- Three-step progression: a neat “first… second… finally…” structure where each part is almost the same length.
- A subheading for every paragraph: sections are forced into segments with titles regardless of content, creating a repetitive “title + one-sentence explanation” rhythm.
3.2 Vocabulary Level
- Abstract nouns and tech buzzwords: words like “empower,” “closed loop,” “handle/grip,” “granularity,” “pipeline,” “ecosystem,” and “moat” appear frequently but rarely land on a concrete object.
- Universal modifiers: “efficient,” “robust,” “comprehensive,” “significant,” “tremendous,” and “powerful” work before any subject and can be deleted without affecting the meaning.
- Clustered transition words: “however,” “it is worth noting,” and “in summary” appear repeatedly and are often strung together with “not only… but also…”
3.3 Structure Level
- Overview at the start, elevation at the end: the opening previews that “we will explore this from multiple dimensions,” and the closing concludes that “the future is promising,” while the middle lacks actionable information.
- Replaceable content: swap out the product, industry, and scenario names throughout, and the article still holds — meaning the text has no concrete informational anchors.
3.4 Stance Level
- Covering both sides without making a judgment: after listing advantages, limitations are always raised; after discussing risks, mitigation measures are added; it ends with “an assessment that combines the actual situation is needed.”
- Missing subjects: heavy use of subjectless passive sentences and vague phrases like “people” and “the industry generally believes,” avoiding specific responsibility and sources.
3.5 Evidence Level
- Data without sources: expressions like “research shows,” “according to statistics,” and “improved by 30%” appear frequently without a source, metric definition, or time range.
- Homogeneous cases: cases often stay at generalized narratives like “a certain e-commerce company in a promotional scenario…” and lack real failure details, version differences, or parameter values.
- Inaccurate terminology: different concepts are mixed, treating “model fine-tuning” and “prompt engineering” as the same level of technique, or using descriptions with obvious anachronisms.
For technical articles, the evidence level is the most fatal: even if the sentence structure is completely natural, without real data and frontline detail, readers still feel the text is empty.
4. Quantitative Detection: Turning Subjective Feel into Feature Metrics
Most of the features above can be turned into computable metrics. The following is only illustrative of the method and does not represent the actual capability of any tool:
- Balanced-sentence density: number of sentences matching a balanced-sentence template ÷ total sentences;
- Coefficient of variation of sentence length: standard deviation of sentence lengths ÷ mean sentence length; a lower value means a more mechanical rhythm;
- Abstract-noun density: number of abstract nouns matched per 100 characters;
- Share of unsupported data: proportion of sentences containing numbers but no source, time, or metric;
- Perplexity: a measure of how surprising the text is; a low value often means heavy templating;
- Lexical diversity: number of distinct words ÷ total words; a lower value means more monotonous wording.
Sample code (uses only the Python standard library):
import reimport statistics# Balanced-sentence templates (illustrative; expand and calibrate against your team's corpus)PARALLEL = [r"not only.{1,30}(?:but also|but|and also)",r"(?:both|need to).{1,30}(?:and|as well as)",r"on (?:the )?one hand.{1,40}on the other hand",r"not.{1,30}but rather",r"not just.{1,30}(?:but also|and also)",r"while.{1,25}also",]ABSTRACT_NOUN = r"(?:empower|closed loop|granularity|pipeline|ecosystem|moat|handle|grip|mindset|combination punch)"def split_sentences(text):"""Split into sentences by Chinese and English end punctuation"""parts = re.split(r"[.!?;。!?;]", text)return [s for s in parts if s.strip()]def balance_ratio(text):"""Balanced-sentence density: share of sentences matching a template"""sents = split_sentences(text)if not sents:return 0.0hits = sum(1 for s in sents for p in PARALLEL if re.search(p, s))return round(hits / len(sents), 3)def sentence_length_cv(text):"""Coefficient of variation of sentence length: smaller means a more uniform rhythm"""sents = split_sentences(text)if len(sents) < 2:return 0.0lens = [len(s) for s in sents]return round(statistics.pstdev(lens) / statistics.mean(lens), 2)def abstract_density(text):"""Abstract-noun density: hits per 100 characters"""n = max(len(text), 1)return round(len(re.findall(ABSTRACT_NOUN, text)) / n * 100, 2)
Keep three points in mind when using these metrics:
- Thresholds must be calibrated by the team against its own corpus. The reasonable range for technical white papers differs markedly from that for marketing copy, so fixed values should not be applied directly.
- The metrics only locate suspicious passages; the final judgment still relies on manual review, combined with output-probability information from the model side.
- There is a risk of misjudgment. Academic writing and policy documents are naturally neat in structure and formal in wording, so thresholds need to be adjusted to the context.
5. Engineering Practice: Turning Rules into a Reusable Skill
After detection comes correction. If you have to paste a long set of requirements into every conversation, the effect decays as the context grows longer, and it is hard to stay consistent across a team. A more reliable approach is to organize the writing standards into a “skill file” that the tool loads automatically.
5.1 Basic Approach
- Write a plain-text skill description containing the name, applicable scenarios, must-do items, prohibited items, and a self-check list.
- Place it in the tool’s skill directory so it takes effect globally; you can also place it in a specific project’s directory so it applies only to that project.
- When the standard needs to change, update only this one file instead of rewriting the prompt.
Skill loading follows a “progressive disclosure” idea: the tool first reads the name and brief description to judge whether the current task needs the skill, and reads the full rules only when needed. This avoids unrelated standards crowding out the context.
5.2 Authoring Points
- Start with verbs and make conditions explicit: use strong constraint words like “must,” “must not,” and “prefer,” and avoid vague phrasing like “try to” or “you may appropriately.”
- Contrast positive and negative: for high-frequency patterns, give examples of prohibited expressions and alternative phrasings, which works better than abstract description.
- Scenario-based trade-offs: technical documents demand precision, marketing copy allows moderate rhetoric, so review standards should be set per genre.
- Layered management: put team-wide general rules in the global directory, and maintain project-specific terminology and taboos separately.
5.3 A Ready-to-Use Skill Example
The following skill file can be copied directly into the tool’s skill directory. When using it, replace the path and filename with actual values — for example, replace code-review with the skill name your project actually uses.
---name: de-ai-writingdescription: Use when writing or polishing technical articles, solution documents, or explanatory text.Identify and remove AI-style template expressions, and improve information density and verifiability.---# GoalProduce text that reads like it was written by a professional author: clear viewpoints, concrete detail, and varied sentence structure.# Must do1. Attach at least one concrete object to every viewpoint: a value (with metric and time), a version, a case, a config item, or an operation step.2. Alternate long and short sentences, and allow uneven paragraph lengths.3. State the clear conclusion first, then explain the reason, and add applicable conditions when necessary.4. Use the active voice "subject + action + result"; when a passive expression must be kept, state who performs the action.# Prohibited list- Prohibit balanced-sentence templates: not only... but also..., both... and..., on one hand... on the other hand..., not... but rather..., while... also.When you truly need to address both sides, split them into two sentences and give a concrete condition for each.- Prohibit abstract nouns without a specific referent: empower, closed loop, handle/grip, granularity, pipeline, ecosystem, moat, combination punch.- Prohibit data without sources: research shows, according to statistics, the industry generally believes, and percentages without a metric, time, or sample.- Prohibit empty universal modifiers: efficient, robust, comprehensive, tremendous.- Prohibit elevation at the end: a promising future, worth looking forward to, far-reaching impact.- Prohibit subheading abuse in the body: keep at most 1 to 2 bold subheadings in the body.# Pre-output self-check1. Delete every adjective and adverb — does the meaning stay the same? If so, delete them.2. Read the whole text aloud — does the same sentence pattern appear more than three times? If so, rewrite two of them.3. Can every number answer "who, when, and how it was measured"?4. Can the core conclusion of the whole text be stated in one sentence? If not, rewrite the opening.
5.4 Team-Level Adoption
- Bring the skill file under unified management in a code repository, record its change history, and keep it easy to trace and roll back.
- In batch scenarios, have a task scheduling system automatically run detection and rewriting, write results and elapsed time to a logging service, and then track changes in metrics like “balanced-sentence density” and “share of unsupported data” through monitoring and alerting.
- For cloud-hosted generation and detection steps, configure timeout, retry, and fallback strategies to prevent a single request failure from breaking the whole pipeline.
- If your enterprise already uses large-model-related services on Baidu AI Cloud, you can build document-generation, content-quality-check, and review pipelines on Baidu AI Cloud’s large-model service platform, and pair them with products such as object storage, message queues, logging services, and monitoring/alerting to turn skill standards into an observable, iterable publishing workflow.
6. Conclusion: The AI Flavor Is a Style Issue, Not a Right-or-Wrong Issue
The AI flavor is not an error but a style. Its value in detection lies in three points: making technical communication more authentic and credible, giving content review a firmer basis, and bringing the author’s own judgment back into the text.
Detection and rewriting can be summarized in four principles:
- Look at density, not a single point: one balanced sentence is not evidence; only the dense stacking of template sentences is a signal.
- Look at evidence, not rhetoric: expressions without a source, metric, and scenario support should be treated with doubt no matter how neat they are.
- Look at structure, not vocabulary: swapping synonyms cannot remove the AI flavor; rewriting the logic can.
- Look at rules, not luck: only when standards are written into a skill file and built into the workflow is the effect stable.
Finally, a note: this article discusses writing quality and expression optimization, not helping evade detection or fake the creative process. In scenarios that require disclosure, honestly stating the degree of AI involvement matters more than any writing technique.
