Code Monkey home page Code Monkey logo

nchinese's Introduction

NChinese

Build status  NuGet Badge

NChinese 是一套用來處理中文字詞的函式庫。目前具備的功能,主要是反查一串中文字的注音或拼音。

安裝

使用 Nuget 套件管理員來安裝,或執行下列命令:

Install-Package NChinese -ProjectName YourProject

簡介

NChinese 內建中文注音詞庫,並提供了反查注音字根與其他輔助 API。

範例:反查注音字根

using NChinese;

// 取得一串中文字的注音字根
var zhuyinProvider = new ZhuyinReverseConversionProvider();
string[] zhuyinArray = zhuyinProvider.Convert("便宜又方便得不得了");

foreach (var s in zhuyinArray)
    Console.Write($"{s} ");  

執行結果:

ㄆㄧㄢˊ ㄧˊ ㄧㄡˋ ㄈㄤ ㄅㄧㄢˋ ㄉㄜ˙ ㄅㄨˋ ㄉㄜˊ ㄌㄧㄠˇ

中文詞庫與注音字根的資料,是以 libchewing 的檔案(tsi.src)為藍本,再經過工具加工之後所產生的。所以透過上述方法所取得的注音字根,在讀音方面比較符合台灣的發音習慣。

開發工具

  • Visual Studio 2022

相依套件

建置工具

未來可能加入什麼功能

  • 中文簡繁轉換
  • 注音符號轉成拼音

授權協議

Copyright(c) 2018-2022 Michael Tsai.

此開源專案是採用 MIT 授權

另外,注音字典 ZhuyinDictionary.txt 是以新酷音 libchewing 的檔案(tsi.src)為藍本,再經過工具加工之後所產生的。新酷音的授權協議是 GNU LGPL v2.1

nchinese's People

Contributors

fishertsai avatar huanlin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.