# 变位词

变位词（anagram）是通过重新排列另一个单词或短语的全部字母而形成的单词或短语，每个字母恰好使用一次，理想情况下结果与原词具有某种有意义的关系：*listen* 变成 *silent*，*triangle* 变成 *integral*，*Quid est veritas?* 变成 *Est vir qui adest*。<sup>[1](https://dictionary.cambridge.org/us/dictionary/english/anagram)</sup><sup> • </sup><sup>[2](http://theanna.org/grams/faq.html)</sup><sup> • </sup><sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup> 该词来自希腊语 *ana*（向后）加 *gramma*（字母）。<sup>[4](https://en.anagramme-expert.com/guides/lexique-jeux-de-mots/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 源单词、名称或短语的所有字母都只使用一次且仅一次；结果应与原词有意义关联<sup>[2](http://theanna.org/grams/faq.html)</sup><sup> • </sup><sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup> |
| 已知最长的变位词 | 迈克·基思（Mike Keith）对《白鲸》（Moby Dick）的处理，935,763 个字母<sup>[2](http://theanna.org/grams/faq.html)</sup> |
| 最长的单词对 | *conversationalists* = *conservationalists*（18 个字母，据《吉尼斯世界纪录》（Guinness））<sup>[2](http://theanna.org/grams/faq.html)</sup> |
| 历史起源 | 传统上追溯到公元前 3 世纪托勒密二世·菲拉德尔福斯（Ptolemy Philadelphus）统治下亚历山大时期的埃及，宫廷诗人吕哥弗隆（Lycophron）<sup>[5](https://www.treccani.it/enciclopedia/anagramma_(Enciclopedia-dell'Italiano)/)</sup> |
| 科学用途 | 伽利略（Galileo）、惠更斯（Huygens）和罗伯特·胡克（Robert Hooke）在 16、17 世纪把发现记录成变位词，以确立优先权<sup>[2](http://theanna.org/grams/faq.html)</sup><sup> • </sup><sup>[6](https://www.anagrammy.com/articles/history.html)</sup> |
| 最难预测的因素 | 双字母组结构和字母移动次数能强烈预测难度（p < .001）；词频只有边际作用<sup>[7](https://link.springer.com/article/10.3758/BF03196922)</sup> |
| 算法复杂度 | 在一种语言中寻找某字符串的变位词的判定版本是 NP 完全的；对于输入长度 n，朴素生成的成本为 n!<sup>[8](https://hdl.handle.net/10062/109756)</sup> |
| 锦标赛形式 | 三轮，每轮 75 分钟；单词至少 6 个字母；每个单词得分为其字母数的平方<sup>[9](https://www.scrabbleassociation.com/rules/anagrams.html)</sup> |

## 定义与相关文字游戏

严格规则是：源词的每个字母在目标词中出现一次且仅一次。<sup>[2](http://theanna.org/grams/faq.html)</sup> 好的变位词还应贴切：目标词应当评论、描述或以其他方式与原词关联，这正是变位词与随机重排的区别。<sup>[2](http://theanna.org/grams/faq.html)</sup><sup> • </sup><sup>[10](https://digitalcommons.butler.edu/cgi/viewcontent.cgi?article=2405&context=wordways)</sup> 一个源词往往有许多有效解。<sup>[20](https://phillipmfeldman.org/English/anagrams.html)</sup>

变位词不同于邻近的文字游戏形式。回文（palindrome）正读反读相同，例如 *racecar* 或 “A man, a plan, a canal: Panama.”<sup>[4](https://en.anagramme-expert.com/guides/lexique-jeux-de-mots/)</sup> 全字母句（pangram）至少使用字母表中的每个字母一次；按严格的一次且仅一次规则，只有 26 个字母的全字母句才算[英语字母表](https://www.edgepedia.org/zh/english-alphabet)的变位词。<sup>[2](http://theanna.org/grams/faq.html)</sup> 反义变位词（antigram，或 antonymous anagram）把一个词重排成意义相反的短语，并不常见；反义变位词游戏（Antigrams）便以此为基础，把 *violence* 变成 *nice love*。<sup>[2](http://theanna.org/grams/faq.html)</sup><sup> • </sup><sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup> 首字母缩略词（acronyms）是缩写而非换位，属于另一类别。<sup>[2](http://theanna.org/grams/faq.html)</sup>

## 历史

传统上把这门技艺追溯到公元前 3 世纪托勒密二世·菲拉德尔福斯统治下的亚历山大时代，宫廷诗人吕哥弗隆为王室名字制作谄媚的变位词，把 *Ptolemaios* 读作“来自蜂蜜”，把阿尔西诺伊（Arsinoe）读作“赫拉的紫罗兰”。<sup>[5](https://www.treccani.it/enciclopedia/anagramma_(Enciclopedia-dell'Italiano)/)</sup> 一些历史学家把起源定在公元前 4 世纪，归于吕哥弗隆，他用变位词奉承权贵；柏拉图（Plato）的追随者相信变位词揭示神性与命运。<sup>[2](http://theanna.org/grams/faq.html)</sup> 希腊人和罗马人一般也知道变位词，更早的塔木德和米德拉什文献则用它们来解释[希伯来圣经](https://www.edgepedia.org/zh/hebrew-bible)。<sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup>

这门技艺的鼎盛期在 16、17 世纪，当时变位词被视为“神圣的标记”，人们从中读出天意与命运，而这些变位词最常取自伟人的名字。<sup>[11](https://doi.org/10.1093/oso/9780198856979.003.0017)</sup> 许多欧洲宗教修会都把制作变位词当作虔修练习，围绕 *Ave Maria, gratia plena, Dominus tecum* 产生出数百种变体。<sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup> 在法国，这股风气传到了宫廷：[路易十三](https://www.edgepedia.org/zh/louis-xiii)（Louis XIII）任命托马斯·比隆（Thomas Billon）为“皇家变位词师”，用人们姓名的有趣变位词娱悦宫廷。<sup>[2](http://theanna.org/grams/faq.html)</sup> 诗人们为君主及其爱人制作颂扬性变位词，例如詹姆斯·斯图亚特（James Stuart）= “A just master”，玛丽·图谢（Marie Touchet）= “Je charme tout.”<sup>[5](https://www.treccani.it/enciclopedia/anagramma_(Enciclopedia-dell'Italiano)/)</sup> 变位词热潮本身接替了更早的藏头诗狂热，后者后来被认为远为逊色。<sup>[11](https://doi.org/10.1093/oso/9780198856979.003.0017)</sup>

经过长期衰落之后，这门技艺随互联网和变位词生成软件而复兴。<sup>[6](https://www.anagrammy.com/articles/history.html)</sup>

## 语言与文学中的变位词

**笔名。** [弗朗索瓦·拉伯雷](https://www.edgepedia.org/zh/francois-rabelais)（François Rabelais，1494—1553）用变位词阿尔科弗里巴斯·纳西耶（Alcofribas Nasier）署名《巨人传》（Gargantua and Pantagruel）的前两卷，以避开索邦（Sorbonne）的审查；在古代，变位词是在既有文本之间被发现的，而拉伯雷构造的笔名标志着转向有意造词。<sup>[5](https://www.treccani.it/enciclopedia/anagramma_(Enciclopedia-dell'Italiano)/)</sup> 拉丁正字法帮了忙：*Calvinus* 变成 *Alcuinus*，因为 v 和 u 可以互换。<sup>[6](https://www.anagrammy.com/articles/history.html)</sup> 许多作者采用变位词笔名，包括吉安巴蒂斯塔·巴西莱（Giovan Battista Basile）、伏尔泰（Voltaire）、[乔纳森·斯威夫特](https://www.edgepedia.org/zh/jonathan-swift)（Jonathan Swift）、雷纳托·富奇尼（Renato Fucini）、弗拉基米尔·纳博科夫（Vladimir Nabokov）、卡洛·埃米利奥·加达（Carlo Emilio Gadda）和圭多·切罗内蒂（Guido Ceronetti）。<sup>[5](https://www.treccani.it/enciclopedia/anagramma_(Enciclopedia-dell'Italiano)/)</sup>

**著名例子。** 痴迷文字游戏的[刘易斯·卡罗尔](https://www.edgepedia.org/zh/lewis-carroll)（Lewis Carroll）把[威廉·尤尔特·格莱斯顿](https://www.edgepedia.org/zh/william-ewart-gladstone)（William Ewart Gladstone）变成 “Wild agitator, means well”，而 *Madam Curie* 可换位为 *Radium came*。<sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup> 在《哈利·波特与密室》（Harry Potter and the Chamber of Secrets）中，汤姆·马沃罗·里德尔（Tom Marvolo Riddle）通过变位词 “I am Lord Voldemort” 揭示了自己的身份。<sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup>

**隐藏变位词的主张。** 莎士比亚（Shakespeare）的临时造词 *honorificabilitudinitatibus* 曾被换位为 “Hi ludi F. Baconis nati tuiti orbi”，并被引作[弗朗西斯·培根](https://www.edgepedia.org/zh/francis-bacon)（Francis Bacon）是这些剧作作者的证据。<sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup>

## 密码学与科学中的变位词

在 16、17 世纪，伽利略、惠更斯和[罗伯特·胡克](https://www.edgepedia.org/zh/robert-hooke)等科学家把结果记录成变位词形式，以确立自己对某项发现的优先权，防止他人窃取功劳：变位词隐藏了发现，而作者日后可以揭示答案。<sup>[2](http://theanna.org/grams/faq.html)</sup><sup> • </sup><sup>[6](https://www.anagrammy.com/articles/history.html)</sup>

这种方法与换位密码（transposition ciphers）密切相关，后者重排字母而不替换字母。密码分析在这里有一个通用工具：当有两个或更多长度相同、用同一换位法和密钥加密的密文时，多重变位词法（multiple anagramming method）可以解出它们，是解决这类密文的方法之一。<sup>[8](https://hdl.handle.net/10062/109756)</sup> 变位词求解也被应用于古代铭文，包括[布拉迪斯拉发](https://www.edgepedia.org/zh/bratislava)（Bratislava）贫穷修女会（Poor Clares）教堂中尚未解出的变位词（安塔尔和扎亚茨，Antal and Zajac，2024）。<sup>[8](https://hdl.handle.net/10062/109756)</sup>

## 变位词求解的认知科学

变位词求解是一种标准认知任务，因为它的搜索空间定义明确：每个解都必须把每个给定字母恰好使用一次。<sup>[12](https://pmc.ncbi.nlm.nih.gov/articles/PMC10351927/)</sup> 关于什么使变位词变难的研究，结论集中在字母串的结构，而不是答案的意义。

**双字母组结构。** 双字母组（bigram）是一对相邻字母。一种双字母组等级度量——基于变位词字母中正确双字母组与错误双字母组的相对频率，并按词长和字母位置调整——是难度的强预测因子（p < .001）。<sup>[7](https://link.springer.com/article/10.3758/BF03196922)</sup> 后来一种称为*最高排名*（top rank）的度量比较双字母组频率之和，被报告为重要预测因子，不过重新分析发现它并非最佳；同一项研究发现，基于类型的双字母组计数（不同字母对）在预测解题时间上并不优于基于实例的计数（按频率加权的字母对）。<sup>[13](https://link.springer.com/article/10.3758/s13428-011-0068-x)</sup> 在一个计算模型中，含高频双字母组的解平均需要 5.3 次迭代，而低频双字母组需要 21.2 次，F(1,8) = 30.3，p < .001。<sup>[14](https://proceedings.neurips.cc/paper_files/paper/2000/file/17c3433fecc21b57000debdf7ad5c930-Paper.pdf)</sup>

**字母移动与位置。** 一项经典实验涉及 72 名被试和 144 个五字母变位词，记录了 864 个解题时间，结果表明：当只需移动一个字母时，当该字母移到附近而非远处位置时，以及当它从端部位置移到中部而非相反时，解题更快。<sup>[15](https://bpspsychub.onlinelibrary.wiley.com/doi/10.1111/j.2044-8295.1959.tb00697.x)</sup> 字母移动次数也能强烈预测解题（p < .001）。<sup>[7](https://link.springer.com/article/10.3758/BF03196922)</sup>

**音节与字母频率。** Rasch 分析表明，音节数是非常重要的难度因素，多音节词对擅长和不擅长解题的人都更难；反直觉的是，更常见的音节可能使多音节词更难解。<sup>[16](https://www.tandfonline.com/doi/abs/10.1080/00221330.2010.540592)</sup> 在词转移概率保持不变时，单个字母频率总和较低的词在 2 分钟时段内被解出的速度显著快于字母频率高的词，被解出的次数也更多。<sup>[17](https://link.springer.com/article/10.3758/BF03331002)</sup>

**词频与技能。** 词频是研究结论不一致的一个因素：一项分析发现它只是边际预测因子（.05 < p < .10），<sup>[7](https://link.springer.com/article/10.3758/BF03196922)</sup> 而更早的一项实验发现，高转移频率的答案词被解出的速度显著更快，F(1,34) = 98.19，p < .001。<sup>[18](https://doi.org/10.3758/bf03335267)</sup> 这两个结果测量的是不同东西（答案词的频率与打乱字符串的转移概率），这一差异尚未解决。技能习得缓慢：整体解题表现的提高似乎需要持续数月或数年的学习。<sup>[15](https://bpspsychub.onlinelibrary.wiley.com/doi/10.1111/j.2044-8295.1959.tb00697.x)</sup> 在不同词长上，找到解的概率随时间单调增加，而较长的词需要更多时间；这一效应早在萨金特（Sargent）1940 年的研究中就有记载。<sup>[14](https://proceedings.neurips.cc/paper_files/paper/2000/file/17c3433fecc21b57000debdf7ad5c930-Paper.pdf)</sup>

## 变位词游戏与竞赛

**锦标赛变位词（Tournament Anagrams）。** 文字游戏管理机构的规则是：从牌池中抽牌，要求单词至少 6 个字母，对词类不加限制。<sup>[9](https://www.scrabbleassociation.com/rules/anagrams.html)</sup> 玩家可以从牌池中添加一个或多个字母并重排字母，从而偷取另一玩家的单词，也可以一次偷取两个单词：COPIER 加 TALONS 变成 PERCOLATIONS。<sup>[9](https://www.scrabbleassociation.com/rules/anagrams.html)</sup> 只有原词的字母在新词中不以相同顺序出现，这个词才算被重排。<sup>[9](https://www.scrabbleassociation.com/rules/anagrams.html)</sup> 游戏结束时，每个仍然成立的单词按字母数的平方计分，总分最高者获胜；锦标赛进行三轮，每轮 75 分钟，两轮后得分最高者进入决赛桌。<sup>[9](https://www.scrabbleassociation.com/rules/anagrams.html)</sup>

**其他游戏。** 在拼字游戏（Scrabble）中，一次用完全部七张牌可获得 50 分奖励，称为“宾果”（bingo），这直接奖励变位词技巧。<sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup> 《[倒计时](https://www.edgepedia.org/zh/countdown-game-show)》（Countdown）由阿尔芒·雅莫（Armand Jammot）设计为法语文字游戏，1982 年改编为英国电视节目，其中有一个九字母“谜题”（conundrum）变位词。<sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup> 隐晦填字游戏（cryptic crosswords）用*confused*、*damaged*或*mixed up*等指示词来提示变位词线索。<sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup> 词典条目也把 *anagrams* 记作名词，指通过重排字母造词的游戏。<sup>[19](https://www.collinsdictionary.com/us/dictionary/english/anagram)</sup>

## 算法与变位词求解器

**词典比较。** 主力方法是从基础词构建字母频率词典，并与[词典](https://www.edgepedia.org/zh/dictionary)中每个词的字母频率词典比较；如果两者相同，就找到了一个变位词。运行时间基本上与基础词的长度无关。<sup>[20](https://phillipmfeldman.org/English/anagrams.html)</sup> 同样的字母计数签名也是互联网变位词服务器（Internet Anagram Server）的基础；这个流行的生成器由阿努·加格（Anu Garg）创建，其名称是 “I, rearrangement servant.” 的变位词。<sup>[3](https://kids.britannica.com/scholars/article/anagram/7328)</sup>

**朴素搜索为何失败。** 生成每个子集或排列的方法无法适应规模增长。一个 10 字母单词有 1,023 个非空字母子集，若对照一部 181,000 词的拼写词典，就意味着约 185,163,000 次比较。<sup>[20](https://phillipmfeldman.org/English/anagrams.html)</sup> 用复杂度术语说，对于输入长度 n，朴素的生成并测试求解器成本为 n!，而基于词典的方法大约搜索 d^(n/l) 个字符串，其中词典大小为 d、平均词长为 l、输入长度为 n；在一种语言中寻找某字符串的变位词的判定版本是 NP 完全的，可由子集和归约而来。<sup>[8](https://hdl.handle.net/10062/109756)</sup> 对人类来说，暴力法没有希望：一个七字母变位词有 5,040 种不同排列要试，若每种花一分钟，约需 84 小时。<sup>[21](https://blog.oup.com/2015/11/solve-anagram-game/)</sup>

**多词变位词。** 把一个短语拆成几个词需要带前缀词典的深度优先搜索；即使在一台快速计算机上，基础词长于约 10 个字母也可能需要 30 秒以上。<sup>[20](https://phillipmfeldman.org/English/anagrams.html)</sup> 生成器程序在一两分钟内产生数百或数千个候选，其中大多数没有意义，因此人的判断仍是最终筛选。<sup>[2](http://theanna.org/grams/faq.html)</sup>

**整数线性规划与 AI 方法。** 一种变位词求解的整数线性规划（integer linear programming）表述在约 81% 的测试设置中恢复了原句；基于词典的方法更快，不过其优势随输入规模增大而减小。<sup>[8](https://hdl.handle.net/10062/109756)</sup> 近期工作结合人工智能和大型语言模型来生成在指定语言中有意义的变位词（西野等，Nishino et al.，2019）。<sup>[8](https://hdl.handle.net/10062/109756)</sup> 谷歌（Google）的 BIG-bench 基准包含一个变位词任务，衡量语言模型解决打乱字母单词的能力；还有一个配套的单词字母重排还原任务，基于万亿词语料库（Trillion Word Corpus）的前 10,000 个一元词，按一致性（保留字母计数）和正确性（输出是真实英语单词）给模型打分。<sup>[22](https://github.com/google/BIG-bench/pull/414)</sup>

## 数字一览

这门技艺的规模从两字母互换到整本书长度的壮举不等。英语中最长的单词对是 *conversationalists* = *conservationalists*，18 个字母，只需互换两个字母；而最长的科学变位词是 27 个字母的 *Hydroxydeoxycorticosterones* = *Hydroxydesoxycorticosterone*，只移动一个字母。<sup>[2](http://theanna.org/grams/faq.html)</sup> 在另一端，迈克·基思对《白鲸》的变位词长达 935,763 个字母，取代了理查德·布罗迪（Richard Brodie）对乔纳森·斯威夫特《书的战争》（The Battle of the Books）的变位词；乔恩·吉尔哈特（Jon Gearhart）为刘易斯·卡罗尔的《[斯纳克之猎](https://www.edgepedia.org/zh/the-hunting-of-the-snark)》（The Hunting of the Snark）制作了 18,870 个字母的变位词。<sup>[2](http://theanna.org/grams/faq.html)</sup> 这些极端例子标出了计算难度的范围：10 个字母的输入已经意味着超过 1.85 亿次朴素比较，<sup>[20](https://phillipmfeldman.org/English/anagrams.html)</sup> 而该问题的判定版本一般是 NP 完全的，<sup>[8](https://hdl.handle.net/10062/109756)</sup> 然而设计良好的字母计数查找能在基本上与输入长度无关的时间内找到单词变位词。<sup>[20](https://phillipmfeldman.org/English/anagrams.html)</sup> 在人类一侧，测得的效果很大：高频双字母组的解所需迭代次数约为低频双字母组的四分之一（5.3 对 21.2），<sup>[14](https://proceedings.neurips.cc/paper_files/paper/2000/file/17c3433fecc21b57000debdf7ad5c930-Paper.pdf)</sup> 而低字母频率的词在 2 分钟时段内被解出的速度显著更快。<sup>[17](https://link.springer.com/article/10.3758/BF03331002)</sup>

## References

1. [ANAGRAM, Cambridge English Dictionary](https://dictionary.cambridge.org/us/dictionary/english/anagram)
2. [Welcome to alt.anagrams (Anagrams FAQ)](http://theanna.org/grams/faq.html)
3. [anagram, Britannica Kids](https://kids.britannica.com/scholars/article/anagram/7328)
4. [Word-game glossary: anagram, palindrome, lipogram, anagramme-expert](https://en.anagramme-expert.com/guides/lexique-jeux-de-mots/)
5. [Anagramma, Treccani Encyclopedia](https://www.treccani.it/enciclopedia/anagramma_(Enciclopedia-dell'Italiano)/)
6. [What is the history of anagrams?, Anagrammy](https://www.anagrammy.com/articles/history.html)
7. [The solution of anagrams: A reexamination of the effects of transition letter probabilities, letter moves, and word frequency on anagram difficulty, Springer](https://link.springer.com/article/10.3758/BF03196922)
8. [Solving Anagrams with Integer Linear Programming](https://hdl.handle.net/10062/109756)
9. [Tournament Anagrams Rules, Scrabble Association](https://www.scrabbleassociation.com/rules/anagrams.html)
10. [Anagrams and Transposals: A Glossary, Word Ways](https://digitalcommons.butler.edu/cgi/viewcontent.cgi?article=2405&context=wordways)
11. [Anagrams, Oxford scholarly chapter](https://doi.org/10.1093/oso/9780198856979.003.0017)
12. [Incorporation of prior knowledge and habits while solving anagrams, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC10351927/)
13. [Type and token bigram frequencies for two-through nine-letter words and the prediction of anagram difficulty, Behavior Research Methods](https://link.springer.com/article/10.3758/s13428-011-0068-x)
14. [The Interplay of Symbolic and Subsymbolic Processes in Anagram Problem Solving, NeurIPS 2000](https://proceedings.neurips.cc/paper_files/paper/2000/file/17c3433fecc21b57000debdf7ad5c930-Paper.pdf)
15. [The Solving of Five-Letter Anagram Problems, British Journal of Psychology](https://bpspsychub.onlinelibrary.wiley.com/doi/10.1111/j.2044-8295.1959.tb00697.x)
16. [The Role of Syllables in Anagram Solution: A Rasch Analysis, Journal of General Psychology](https://www.tandfonline.com/doi/abs/10.1080/00221330.2010.540592)
17. [The effect of letter frequency on anagram solution times, Springer](https://link.springer.com/article/10.3758/BF03331002)
18. [Anagram solution as a function of transition probabilities and solution word frequency](https://doi.org/10.3758/bf03335267)
19. [ANAGRAM definition in American English, Collins English Dictionary](https://www.collinsdictionary.com/us/dictionary/english/anagram)
20. [Anagram-finding algorithms, Phillip M. Feldman](https://phillipmfeldman.org/English/anagrams.html)
21. [How to solve an anagram, OUPblog](https://blog.oup.com/2015/11/solve-anagram-game/)
22. [Adding anagrams task, BIG-bench, GitHub](https://github.com/google/BIG-bench/pull/414)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 21, 2026 · Edited: Sep 30, 2026; Oct 21, 2026 · Last review: Oct 21, 2026*

Topic: 体育、游戏与休闲 › 棋牌与益智游戏 › 益智游戏 › Physical, logic, and word puzzles › Non-crossword word puzzles

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/anagram

English original: https://www.edgepedia.org/anagram
