inaka / sheldon Goto Github PK
View Code? Open in Web Editor NEWVery Simple Erlang Spell Checker
License: Apache License 2.0
Very Simple Erlang Spell Checker
License: Apache License 2.0
for markdown adapter use emarkdown
Hi Team,
I have tested this sheldon spell checker utility. I did see, the the hyphen words are not suggested by the spell checker.
for example:
self-ownership
self-paid
self-painter
self-pampered
self-pampering
self-panegyric
self-parasitism
self-parricide
self-partiality
self-paying
self-peace
Is there something i am missing to validate this?.
Testing with spellingCI I saw 5 seconds is not good enough. We can increase the default timeout or/and make that number configurable from config file
I missed to remove some Elixir references
After #40
I see that the only existing dictionary is English, but I'd like to use it for Portuguese-BR. Seems like it would only need a bazinga.txt
and a dictionary.txt
, correct?
If I can provide these, would you merge the PR?
Thanks!
Adding Travis CI
rpc:pmap/3
can throw exit(badrpc)
in this code
suggestions(MisspelledWords, Lang) ->
try rpc:pmap({?MODULE, add_suggestions}, [Lang], MisspelledWords) of
Result -> Result
catch
exit:badrpc:Stacktrace ->
error_logger:error_msg( "~p:~p >> Error: badrpc~n\tStack: ~p"
, [?MODULE, ?LINE, Stacktrace]
),
MisspelledWords
end.
we can remove the catch since the rpc:pmap/3
doesn't throw an exception
sheldon
versionOS
versionWindows
Compile sheldon
on Windows.
C:/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64/bin/mingw32-make -C d:/a/rebar3_sheldon/rebar3_sheldon/_build/default/lib/hoedown libhoedown.a
mingw32-make[1]: Entering directory 'd:/a/rebar3_sheldon/rebar3_sheldon/_build/default/lib/hoedown'
cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -c -o src/autolink.o src/autolink.c
process_begin: CreateProcess(NULL, cc -g -O3 -ansi -pedantic -Wall -Wextra -Wno-unused-parameter -Isrc -c -o src/autolink.o src/autolink.c, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make[1]: *** [Makefile:92: src/autolink.o] Error 2
mingw32-make[1]: Leaving directory 'd:/a/rebar3_sheldon/rebar3_sheldon/_build/default/lib/hoedown'
mingw32-make: *** [Makefile:33: ../priv/emarkdown.so] Error 2
mingw32-make: Leaving directory 'd:/a/rebar3_sheldon/rebar3_sheldon/_build/default/lib/emarkdown/c_src'
===> Hook for compile failed!
The sheldon
can be able compile on Windows.
the current version (2.2.3) of worker_pool is not compatible with erlang 20
sheldon
versionOS
versionUbuntu
bazinga
in response from sheldon
. It would be great have configuration for this behavior.show_bazinga
true/false
to skip bazinga
message from sheldon
in response.The bazinga
field in response always provided.
The bazinga
field in response should be configurable.
sheldon
versionOS
versionMacOS 11.6
non-breaking
as two words: non
and breaking
.For instance…
src/spillway_srv.erl:51: The word "non-incrementing" in comment is unknown.
No warnings.
Currently it complains about deprecated functions
Candidates is returning the misspelled word.
The line https://github.com/inaka/sheldon/blob/master/src/sheldon_dictionary.erl#L189 should be replaced by
[]
sheldon
versionOS
versionUbuntu
typo_dictionary.txt
based on dictionary.txt
and put it into priv/lang/eng/*
or move into separate repo, because the size of file can be large for eg hex.pm. As result for each word from dictionary.txt
will be put into eg ets
all possible typos. Which in turn will lead to the fact that all possible options will already be generated and available, the shadlon
will not need to spend additional time on additional generation, words are either there or not.The sheldon
try generate and provide a lot of candidates for each word in real time.
All possible candidates should be insert before sheldon
will be loaded/started.
It might be worth adding an option to control whether the new behavior is turned on or off.
sheldon
versionOS
versionUbuntu
1> sheldon:check("this comment: ’").
** exception error: bad argument
in function re:split/2
called as re:split([116,104,105,115,32,99,111,109,109,101,110,116,58,
32,8217],
"\n")
*** argument 1: not an iodata term
in call from sheldon:do_check/2 (/.../sheldon/src/sheldon.erl, line 58)
The sheldon
crashes when put unicode
chars.
The sheldon
work with unicode
chars.
Try to go up to 100%
sheldon
versionOS
versionUbuntu
Cache of suggested suggestions is missed.
Cache of suggested suggestions is missed implemented.
Optional: it might be worth considering an additional option to enable and disable the cache of suggested suggestions.
sheldon is spending almost 40 seconds when starts. The problem is converting from the keys list to a set when starting the dictionary
Adding the integration Travis + Codecov
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.