背景:英语词性(part of speech)是读英文文档、写技术博客、面试英语 question 的最底层语法。很多程序员读 GitHub README 卡壳、写英文 commit message 词不达意、做英语面试自我介绍时主谓不一致——根因往往不是单词量不够,而是词性边界不清(把形容词当副词用、把限定词当形容词用)。本文用 11 大词性 + 例句对照表,把"什么词能修饰什么、能做什么成分"一次说清。
Why 2026 还重要:从 2017 年写这篇到 2026 年,词性边界不清的问题一个都没消失——GitHub Copilot 写出来的英文 commit 90% 词性错配,AI 翻译工具仍然搞不定"形容词/副词"边界。词性是底层基础设施——AI 再强,词性没搞懂,写出来的东西机器能读、人读起来别扭。
一、为什么程序员要学词性
1.1 三个真实场景
| 场景 | 卡壳点 | 根因 |
|---|---|---|
| 读 RFC 文档 | “The packet is fragmented by the router.” | 不知道 fragmented 是过去分词(形容词性),作表语 |
| 写 commit message | “Fix bug where user can’t login” | 漏写助动词 does,因为不知道情态动词要 + 动词原形 |
| 英语面试 | “I’m a developer responsible for backend.” | 把 responsible(形容词)当动词用 |
| 读代码注释 | // Function to **quickly** sort the array | 把 quickly(副词)当形容词用修饰 sort(动词)是对的;但 // A **quick** sort 修饰 sort 又是错的——sort 是名词,形容词 OK |
| Stack Overflow 答题 | “I am interesting in this problem” | 漏写 interested——interesting 是形容词(修饰物),interested 是形容词(修饰人) |
1.2 词性的"开放"和"封闭"区别
- 开放类(Open Class):可以创造新词,词典不断更新。包含:名词、动词、形容词、副词、代词
- 封闭类(Closed Class):数量固定,不能创造新词。包含:介词、连词、冠词、数词、感叹词、限定词
类比记忆:开放类像"开源代码库"(PR 不断合并新词),封闭类像"标点符号"(已经定型)。
二、开放类 5 大词性
2.1 名词(Noun, n.)
定义:表示人、事物、地点、概念或情感的词。
分类:
| 分类 | 例子 | 说明 |
|---|---|---|
| 普通名词 | book dog computer | 泛指 |
| 专有名词 | China Tom Linux | 首字母大写,特指 |
| 可数名词 | apple bug function | 有单复数 |
| 不可数名词 | water information code | 无单复数 |
例句:
The book is on the desk.(这本书在桌子上。)
标志:可作主语、宾语、表语;可被形容词修饰;可加 -s 变复数(可数时)。
2.2 动词(Verb, v.)
定义:表示动作、状态或发生的词。
分类:
| 分类 | 例子 | 说明 |
|---|---|---|
| 实义动词 | run eat compile | 有具体含义 |
| 系动词 | be become seem | 连接主语和表语 |
| 助动词 | do have will | 帮助构成时态、语态、疑问句 |
| 情态动词 | can must should may | 表能力/义务/可能 |
例句:
She sings very well.(她唱歌很好听。)
5 种基本形式(以 take 为例):
| 形式 | 例子 | 用法 |
|---|---|---|
| 原形 | take | 一般现在时 |
| 第三人称单数 | takes | he/she/it + 动词 |
| 过去式 | took | 一般过去时 |
| 过去分词 | taken | 完成时、被动态 |
| 现在分词 | taking | 进行时 |
程序员陷阱:
build→built→built(不规则);commit→committed→committed(双写 t + ed)
2.3 形容词(Adjective, adj.)
定义:修饰名词或代词,表示性质、特征、数量或状态。
例句:
This is a beautiful flower.(这是一朵漂亮的花。)
比较级与最高级:
| 规则 | 原级 | 比较级 | 最高级 |
|---|---|---|---|
| 一般加 -er/-est | tall | taller | tallest |
| 辅音字母 + y 变 i | easy | easier | easiest |
| 重读闭音节双写 | big | bigger | biggest |
| 多音节用 more/most | beautiful | more beautiful | most beautiful |
| 不规则 | good bad | better worse | best worst |
标志:可作定语(前置:a fast car)或表语(后置:The car is fast)。
2.4 副词(Adverb, adv.)
定义:修饰动词、形容词、其他副词或整个句子,表示时间、地点、方式、程度等。
例句:
He runs fast.(他跑得很快。)
6 大类副词:
| 类型 | 例子 | 问什么 |
|---|---|---|
| 时间 | now yesterday often | When? |
| 地点 | here there everywhere | Where? |
| 方式 | quickly slowly carefully | How? |
| 程度 | very quite almost | How much? |
| 频率 | always usually sometimes | How often? |
| 疑问/连接 | why how therefore | Why?/How? |
常见误区:
hard(努力地,形容词也是 hard)是少数既可作形容词也可作副词且同形的词。He works hard.(副词,修饰动词)/It's a hard problem.(形容词,修饰名词)
2.5 代词(Pronoun, pron.)
定义:用来代替名词、名词短语或句子,避免重复。
8 大分类:
| 分类 | 例子 | 用法 |
|---|---|---|
| 人称代词 | I you he she it we they | 主语/宾语 |
| 物主代词 | my your his(形容词性)/mine yours(名词性) | 表示所属 |
| 反身代词 | myself yourself themselves | 强调/反身 |
| 指示代词 | this that these those | 指代方向 |
| 疑问代词 | who what which | 引导疑问句 |
| 关系代词 | who which that | 引导定语从句 |
| 不定代词 | some any all none each | 不定指代 |
| 相互代词 | each other one another | 相互关系 |
例句:
She is a teacher.(她是一名教师。)
The package that you sent has arrived.(你寄的包裹到了。)
三、封闭类 6 大词性
3.1 介词(Preposition, prep.)
定义:表示名词或代词与其他词之间的关系(时间、地点、方向、方式等)。
5 大类:
| 类型 | 例子 |
|---|---|
| 时间 | at on in during since for |
| 地点 | in on at under behind between |
| 方向 | to from into out of towards |
| 方式 | by with without through |
| 其他 | about of against as |
例句:
The cat is under the table.(猫在桌子下面。)
at 5 o’clock / on Monday / in 2026
3.2 连词(Conjunction, conj.)
定义:连接单词、短语、从句或句子。
3 大类:
| 分类 | 例子 | 用法 |
|---|---|---|
| 并列连词 | and but or so yet | 连接并列成分(7 个:FANBOYS) |
| 从属连词 | because when if although while | 引导从句 |
| 关联连词 | both...and either...or neither...nor not only...but also | 成对使用 |
例句:
I like coffee but I don’t like tea.(我喜欢咖啡,但不喜欢茶。)
Although it’s raining, we still go out.(虽然下雨,我们还是出门。)
3.3 冠词(Article, art.)
定义:放在名词前,帮助说明名词所指的人或事物。
3 大类:
| 分类 | 例子 | 用法 |
|---|---|---|
| 不定冠词 | a / an | 泛指、可数单数;a 后辅音音素开头,an 后元音音素开头 |
| 定冠词 | the | 特指(双方都知道的事物、最高级、序数词、独一无二的事物) |
| 零冠词 | 无 | 复数名词/不可数名词泛指时 |
例句:
She is a student.(她是一名学生。)
The book I bought is interesting.(我买的那本书很有趣。)
/ Books are my friends.(书是我的朋友。)
坑:
a university(不是an university,因为 university 发音是 /juː/,是辅音音素)
3.4 数词(Numeral, num.)
定义:表示数量或顺序的词。
2 大类:
| 分类 | 例子 | 用法 |
|---|---|---|
| 基数词 | one two three ten hundred | 数量 |
| 序数词 | first second third tenth | 顺序 |
例句:
There are three apples on the plate.(盘子里有三个苹果。)
He is in the first grade.(他在一年级。)
不规则序数词必背:
one → firsttwo → secondthree → thirdfive → fiftheight → eighthnine → ninthtwelve → twelfth(其余 + th)
3.5 感叹词(Interjection, interj.)
定义:表示强烈的情感,独立于句子结构之外。
常见:oh wow ah oops hey alas ouch hmm yeah nope
例句:
Wow! That’s amazing!(哇!太神奇了!)
Oops, I made a mistake.(哎呀,我犯了个错。)
Hmm, let me think.(嗯,让我想想。)
3.6 限定词(Determiner, det.)
定义:限定名词的范围、数量、所有关系等。很多人把它误归为形容词——但严格语法学派把它独立出来。
5 大类:
| 分类 | 例子 | 例句 |
|---|---|---|
| 物主限定词 | my your his her its our their | my pen(我的笔) |
| 指示限定词 | this that these those | this apple(这个苹果) |
| 数量限定词 | some any many much few little | some water(一些水) |
| 疑问限定词 | which what whose | Which car is yours?(哪辆车是你的?) |
| 不定限定词 | a an the(冠词也是限定词的一种) | a book(一本书) |
关键区别:
my(限定词)vsmine(代词)
This is **my** book.(限定词,限定 book)- Mine is on the table.(代词,代替 my book)
四、11 类词性速查表
| 词性 | 英文 | 缩写 | 核心功能 | 例子 |
|---|---|---|---|---|
| 名词 | Noun | n. | 人事物概念 | book code |
| 动词 | Verb | v. | 动作状态 | run compile |
| 形容词 | Adjective | adj. | 修饰名词 | big fast |
| 副词 | Adverb | adv. | 修饰动/形/副/句 | quickly very |
| 代词 | Pronoun | pron. | 代替名词 | he it this |
| 介词 | Preposition | prep. | 关系 | in on at |
| 连词 | Conjunction | conj. | 连接 | and but if |
| 冠词 | Article | art. | 限定名词 | a an the |
| 数词 | Numeral | num. | 数量/顺序 | one first |
| 感叹词 | Interjection | interj. | 情感 | oh wow |
| 限定词 | Determiner | det. | 限定名词 | my this some |
五、程序员英语常见词性错误
| 错误 | 正确 | 分析 |
|---|---|---|
| “The code run fast.” | “The code runs fast.” | 主语是单数第三人称,动词要加 -s |
| “I’m interest in AI.” | “I’m interested in AI.” | interested 是过去分词(形容词性),表示"我被引起兴趣" |
| “I can runs faster.” | “I can run faster.” | 情态动词后接动词原形 |
| “Hardly work” | “I work hard.” | hardly 是"几乎不"(否定),hard 才是"努力地" |
| “I’m a success developer.” | “I’m a successful developer.” | successful 形容词修饰名词;success 是名词 |
| “Discuss about the issue” | “Discuss the issue” | discuss 是及物动词,后面直接接宾语,不要加 about |
六、3 个实战训练法
6.1 句子成分分析法
任意找一句英文,用 5 个 W 标注每个词:
| |
6.2 GitHub README 词性扫盲
读任意开源项目 README,圈出 11 类词性的出现频次——你会发现名词(30%)+ 动词(25%)+ 限定词/冠词(20%)+ 形容词(10%)+ 介词(10%) 这 5 类就占了 95%。
6.3 commit message 词性自查
| |
七、词性在 GitHub/CI/CD/Stack Overflow 中的实战对照表
下面是程序员日常高频场景的"词性错配"对照表,背下来能避开 90% 英文写作的尴尬:
| 场景 | 错(词性错配) | 对(词性正确) | 错配类型 |
|---|---|---|---|
| commit message | Fix bug where user can't login | Fix bug where user can't log in | 漏加空格(login 是名词,log in 是动词短语) |
| commit message | Add new feature | Add a new feature | 漏冠词(feature 是可数名词单数) |
| PR description | This PR fix the bug | This PR fixes the bug | 主谓不一致(PR 是单数第三人称) |
| PR description | I has tested it | I have tested it | 助动词错误(I + have,不是 has) |
| Stack Overflow 提问 | How to learn English? | How do I learn English? | 缺少助动词 do |
| 代码注释 | // Return the result quick | // Return the result quickly | 副词形式错误(修饰动词要用副词) |
| 代码注释 | // The function is use to sort | // The function is used to sort | 语态错误(被动语态用过去分词) |
| README | This library help you to X | This library helps you to X | 主谓不一致(library 是单数第三人称) |
| CHANGELOG | Breaking change | Breaking change(这条对的,但加 “in API” 才对完整) | 缺修饰成分 |
| issue 描述 | It's not working on my machine | It doesn't work on my machine | 缩写歧义(working 是名词/动名词,work 是动词) |
记住 3 条铁律:
- 第三人称单数(he/she/it/library/PR/function)→ 动词加
s:works、fixes、returns - 助动词 do/does/did 后 → 动词用原形:does fix、do work、did return
- 形容词修饰名词、副词修饰动词:quick function(形容词)、work quickly(副词)
八、参考与延伸
- English Parts of Speech (Britannica):https://www.britannica.com/topic/part-of-speech
- Cambridge Dictionary Grammar:https://dictionary.cambridge.org/grammar/british-grammar
- EnglishClub 词性专题:https://www.englishclub.com/grammar/parts-of-speech/
- EnglishPage 语法在线课:https://www.englishpage.com/grammar/
- GitHub Open Source Guide 英文写作规范:https://opensource.guide/how-to-contribute/#communicating-effectively
- Google Developer Documentation Style Guide:https://developers.google.com/style(程序员英文技术写作圣经)
- Conventional Commits 规范:https://www.conventionalcommits.org/(commit message 词性规范的"事实标准")
- Stack Overflow 英语提问指南:https://stackoverflow.com/help/how-to-ask
下一步:挑一本英语语法书(如《赖世雄语法》薄荷阅读/《English Grammar in Use》剑桥中级)系统过一遍;接下来读英文 RFC / Stack Overflow 时主动标注词性,3 个月后就能形成"语感"。
