Skip to content

这是一个字典库,包含340万离线单词,并且支持多种在线平台的接口.

Notifications You must be signed in to change notification settings

Entity-Now/MoqDictionary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoqDictionary

一款基于c#的字典库,内含340万+离线单词,并且支持调用线上平台进行翻译。

安装

dotnet add package MoqDictionary --version 1.0.2

离线单词

单个单词

QueryDir.getDir("Hello");

常用与分割编程中的变量、函数、类名等

var words = ParseString.getWordArray("hello world");
QueryDir.getDir(words);

可用于分割字符串中的单词

var words = ParseString.getWordAtText("hello world");
QueryDir.getDir(words);

在线平台

TranslateHelper.getTranslateAsync(TranslateType.Google, new List<string>{ "hello word" });
TranslateHelper.getTranslateAsync(TranslateType.Bing, new List<string>{ "hello word" });
TranslateHelper.getTranslateAsync(TranslateType.Deep, new List<string>{ "hello word" });
TranslateHelper.getTranslateAsync(TranslateType.Yandex, new List<string>{ "hello word" });

支持的在线平台

由于都是免费版本,且用且珍惜。

平台
Google
Bind
Deep
Yandex

About

这是一个字典库,包含340万离线单词,并且支持多种在线平台的接口.

Resources

Stars

Watchers

Forks

Languages