1ec5 / hunspell-vi

Vietnamese spell checking dictionaries for Firefox, SeaMonkey, LibreOffice, and OpenOffice
82 stars 36 forks source link

Tiếng việt không dấu ? #18

Closed chuongmep closed 2 years ago

chuongmep commented 3 years ago

Dear Author , Wheather solution suppport vienamese no phonology I have a isuse in this #32 Chào tác giả , Liệu có giải pháp nào cho tiếng việt không giấu không ? Tôi có một vấn đề cần kéo ở đây #32

1ec5 commented 2 years ago

This project is a spell checker, but a spell checker for Vietnamese without diacritics would be extremely lax. Can you describe your use case? Depending on how you intend to use this functionality, it would be more efficient to use a standard regular expression tool to match against the following regular expression:

([BCDGHKLMNPQRSTVX]|[CKNP]H|G[HI]|NGH?|QU|T[HR])(A[IOUY]?|E[OU]?|I[AU]?|IEU?|O[AEO]?|OAY|U[AIOUY]|YA?)[MNPT]|[C]H?|N[GH]

For something stricter, this JavaScript code from AVIM is very good at distinguishing valid from invalid Vietnamese words based on the base letters.

If you just need a tool to strip diacritics from Vietnamese text that has diacritics, then you can run this Python script on the command line.

chuongmep commented 2 years ago

thanks for your infomation, I use to add some check spell from resharper plugin, code working perfect.