技能标识:english-dict
English dictionary lookup tool. Query English words to get Chinese definitions and generate two example sentences. Use when user needs to look up English word meanings, get translations, or see example sentences for vocabulary learning.
查询英语单词的中文释义,并自动生成两个例句。
bash
python3 scripts/dict.py <单词>
示例:
bash
python3 scripts/dict.py hello
python3 scripts/dict.py python
python3 scripts/dict.py beautiful
📚 HELLO
音标: /həˈloʊ/
词性: int./n.
📖 中文释义:
1. 你好
2. 喂
3. 打招呼
💬 例句:
1. Hello! Its so great to see you again!
(中文翻译请自行理解或查询)
2. Hello, could you help me with this?
(中文翻译请自行理解或查询)
当前包含以下基础词汇:
如需查询更多单词,建议配置外部词典API:
def youdao_lookup(word):
url = fhttps://dict.youdao.com/jsonresult?q={word}
response = requests.get(url)
return response.json()
编辑脚本中的 BASIC_DICT 字典,添加新单词:
python
BASIC_DICT = {
yourword: {
phonetic: /pronunciation/,
meanings: [意思1, 意思2],
pos: 词性
}
}
脚本根据词性自动选择合适的例句模板:
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 english-dict-1776283756 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 english-dict-1776283756 技能
skillhub install english-dict-1776283756
文件大小: 4.63 KB | 发布时间: 2026-4-16 15:48