字典 API 或库 [英] Dictionary API or Library

查看:22
本文介绍了字典 API 或库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道一个好的字典 API 或 ruby​​ 库来查找单词的定义?

Does anyone know of a good dictionary API or ruby library to lookup the definitions of words?

我认为它应该像这样工作:

I'm thinking it should work something like:

  1. 我调用 get_definition(word)
  2. 它返回该词的定义(最好以某种方式轻松格式化定义以供显示.

谢谢

推荐答案

Ruby-WordNet 听起来像你想要的:

Ruby-WordNet 是一个 Ruby 接口WordNet® 词法数据库.词网是一个在线词汇参考系统其设计灵感来自当前人类心理语言学理论词汇记忆.英语名词、动词、形容词和副词是有组织的成同义词集,每个代表一个潜在的词汇概念.不同的关系链接同义词套.

Ruby-WordNet is a Ruby interface to the WordNet® Lexical Database. WordNet is an online lexical reference system whose design is inspired by current psycholinguistic theories of human lexical memory. English nouns, verbs, adjectives and adverbs are organized into synonym sets, each representing one underlying lexical concept. Different relations link the synonym sets.

这篇关于字典 API 或库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆