turfaa / indonesiankatabakuchecker Goto Github PK
View Code? Open in Web Editor NEWIndonesian Kata Baku Checker
License: Do What The F*ck You Want To Public License
Indonesian Kata Baku Checker
License: Do What The F*ck You Want To Public License
Hi @turfaa
I don't see any license for this repository.
May I suggest you GNU General Public License v3.0?
A short explanation from Choose an open source license - Choose a License
I care about sharing improvements.
The GNU GPLv3 is a copyleft license that requires anyone who distributes your code or a derivative work to make the source available under the same terms, and also provides an express grant of patent rights from contributors to users.
The following pairs of words appear as corrections both ways.
e.g. 'himbau' is offered as a correction for 'imbau', and 'imbau' is offered as a correction for 'himbau'.
$ awk -F'|' '{ print($2"|"$1); }' dict.txt | while read pattern; do fgrep "$pattern" dict.txt; done | sort
himbau|imbau
hutang|utang
imaginasi|imajinasi
imajinasi|imaginasi
imbau|himbau
jadual|jadwal
jadwal|jadual
kantong|kantung
kantung|kantong
utang|hutang
$ git grep himbau dict.txt
dict.txt:imbau|himbau
dict.txt:himbau|imbau
1 | 2 |
---|---|
himbau | imbau |
hutang | utang |
imaginasi | imajinasi |
imajinasi | imaginasi |
imbau | himbau |
jadual | jadwal |
jadwal | jadual |
kantong | kantung |
kantung | kantong |
utang | hutang |
My understanding is that these are wrong:
But both kantong and kantung are valid, but kantong is better and is typically what was intended.
$ awk -F'|' '{ if ($1 == $2) print($1); }' dict.txt
museum
institute
https://github.com/turfaa/IndonesianKataBakuChecker/blob/master/dict.txt#L392
"salah" is a correct and formal word. It's also an antonym of "benar".
It's pretty funny though
@chocochino made some suggestions at:
languagetool-org/languagetool#595 (review)
I have provided PRs #9 and #11 for some of them, but more are needed.
I think this would be a good additional source for the dictionary:
https://id.wikipedia.org/wiki/Wikipedia:Daftar_kosakata_bahasa_Indonesia_yang_sering_salah_dieja.
You can try parsing the tables with the help of tools such as http://wikitables.geeksta.net and update the dictionary using the data. I made a PR containing some updates from the tables here: #1 :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.