DictionaryLookup[patt]
给出英文词典中所有匹配字符串模式 patt 的单词.
DictionaryLookup[patt,n]
仅给出查到的前 n 个单词.
DictionaryLookup[{"lang",patt}]
在由 lang 指定的语言里找到单词.
DictionaryLookup
DictionaryLookup[patt]
给出英文词典中所有匹配字符串模式 patt 的单词.
DictionaryLookup[patt,n]
仅给出查到的前 n 个单词.
DictionaryLookup[{"lang",patt}]
在由 lang 指定的语言里找到单词.
更多信息和选项
- 默认情况下,对单词不进行分组,所以像单词 “jump”、“jumps”和 "jumping"将单独出现.
- 默认情况下,单词以它们将在句子内的形式出现. 设定选项 IgnoreCase->True 获取以不同大小写格式出现的单词.
- DictionaryLookup[] 给出词典中所有单词的一个列表.
- DictionaryLookup[All] 给出词典中可查询的语言列表.
- DictionaryLookup[{"lang",All}] 在词典中获取匹配 lang 的全部单词.
- DictionaryLookup[{All,patt}] 在词典中获取匹配 patt 的全部单词.
范例
打开所有单元 关闭所有单元基本范例 (3)
范围 (3)
DictionaryLookup["jump" ~~ ___]DictionaryLookup 支持以字符串模式:
DictionaryLookup["jump*"]DictionaryLookup["z" ~~ ___, 10]推广和延伸 (3)
DictionaryLookup[All]DictionaryLookup[{All, "molecu" ~~ ___}]DictionaryLookup[{{"Dutch", "Spanish"}, "molecula" ~~ ___}]DictionaryLookup[{All, "fiancée"}]选项 (1)
应用 (5)
Length[DictionaryLookup[# ~~ ___]]& /@ CharacterRange["a", "z"]ListPlot[%, Filling -> Axis]DictionaryLookup[x__ /; x === StringReverse[x]]Intersection[DictionaryLookup[{"English", x__ /; x === StringReverse[x]}], DictionaryLookup[{"French", x__ /; x === StringReverse[x]}]]得出包含每一个"a","b" 和 "c" 可能排列的单词数:
StringJoin /@ Permutations[{"a", "b", "c"}]Length[DictionaryLookup[___ ~~ # ~~ ___]]& /@ %Select[StringJoin /@ Tuples[{"a", "b", "c", "d", "e"}, 4], Length[DictionaryLookup[#]] ≠ 0&]nf = Nearest[DictionaryLookup[__]]nf["pickel"]nf["pickel", 10]巧妙范例 (4)
DictionaryLookup[("a" | "g" | "c" | "t").., IgnoreCase -> True]RandomChoice[DictionaryLookup["a" ~~ ___], 10]randomWord[] := RandomChoice[DictionaryLookup[{RandomChoice[DictionaryLookup[All]], All}]];Graphics[Table[Rotate[Text[Style[randomWord[], Hue[RandomReal[]], Italic, RandomInteger[{10, 30}]], RandomReal[10, 2]], RandomReal[{0, 2Pi}]], {40}], AspectRatio -> 1 / GoldenRatio]Table[Histogram[StringLength /@ DictionaryLookup[{l, All}], {Range[25]}, ImageSize -> 150, PlotLabel -> l, PlotRange -> {{0, 25}, All}], {l, DictionaryLookup[All]}]文本
Wolfram Research (2007),DictionaryLookup,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DictionaryLookup.html (更新于 2008 年).
CMS
Wolfram 语言. 2007. "DictionaryLookup." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2008. https://reference.wolfram.com/language/ref/DictionaryLookup.html.
APA
Wolfram 语言. (2007). DictionaryLookup. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DictionaryLookup.html 年
BibTeX
@misc{reference.wolfram_2026_dictionarylookup, author="Wolfram Research", title="{DictionaryLookup}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/DictionaryLookup.html}", note=[Accessed: 13-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_dictionarylookup, organization={Wolfram Research}, title={DictionaryLookup}, year={2008}, url={https://reference.wolfram.com/language/ref/DictionaryLookup.html}, note=[Accessed: 13-September-2026]}