字典API或图书馆 [英] Dictionary API or Library

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

问题描述

有没有人知道一本好的字典API或红宝石图书馆来查找单词的定义?



我以为应该这样工作:


  1. 我调用get_definition(word)

  2. 它返回该单词的定义(理想情况下,以某种方式轻松格式化

谢谢

解决方案

Ruby-WordNet 听起来像您要查找的内容:


Ruby-WordNet是WordNet®词汇数据库中的
的Ruby接口,WordNet
是一个在线词汇引用系统
,其设计灵感来源于人类
词汇记忆的当前
心理语言学理论。英语名词,动词,
形容词和副词组织成
为同义词集,每个代表
一个潜在的词汇概念。
Diffe租金关系链接同义词
套。



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. I call get_definition(word)
  2. It returns the definition for that word (ideally in some way to easily format the definition for display.

Thanks

解决方案

Ruby-WordNet sounds like it does what you're looking for:

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天全站免登陆