grammatek / simacorrect Goto Github PK
View Code? Open in Web Editor NEWIcelandic spell checker for android
Icelandic spell checker for android
Allowing users to import dictionaries, whether it would be from individuals, institutions or their old phones.
Need to investigate how feasible this really is and if so, how much support can we provide.
Items to investigate:
Example to help describe the bug: Let's say you write 3 words, word a
, b
and c
. The spell checker iterates through all the words, processing 1 at time. Let's say you write those words pretty fast and immediately as you get spell suggestion for word a
you use that to correct the word. Meanwhile the spell checker is still "processing" word b
and c
, and if you use the correction for word a
while that is still going on, you somehow stop the spell checking process and you won't get suggestions for word b
and c
UNLESS you continue writing (for each new word the spell checker iterates through the whole thing.)
Note:
This might only be an issue while the response from the API is as slow as it is currently. Before being able to determine if this issue is worth looking into we need to be able to replicate this after we've setup a proper API with fast response time.
Create a class that encompasses all the networking stuff required by our application.
The name DevelopersApi
is misleading. We should name it according to a more appropriate name.
Give the spell checker access to the user's dictionary to compare against before correcting words.
Currently this application doesn't have a app.kt
and only 1 activity which currently acts as the starting point for the application. We need a proper starting point to initialize all of our components and tie them together.
CI / Github actions should build the project. Should be looking similar to this.
After a proper API has been established it should be worth while to explore caching to see if it increases performance by any meaningful amount.
Samsung Keyboard doesn't support a custom spell checker so one must use another keyboard such as Gboard.
This is stated in the readme but not indicated in the application itself.
Ideally we need something to identify if a keyboard supports the spellchecker instead of what we do currently, which is:
Redirect users to LanguageSettings, which is fine if users use a compatible keyboard but leaves users with no resolution if the keyboard isnt compatible.
Solution I propose.
Identifying if the keyboard doesen't support a spell checker and instead ask the user if he want's to install Gboard to be able to use the spell checker. If the user has a keyboard installed that is compatible with a spell checker, redirect the user to those settings.
Add error handling for lost connection
All UI should be available in Icelandic as well
Info screen with information about the app, device, company, e.t.c.
Currently dealt with in a "temporary" manner in #1 but we are in need of a more robust solution.
Currently we just throw a generic exception if the API calls fail but ideally we would need to handle all the different ways things could go wrong.
Simaromur's connection check used as reference point.
registerNetworkCallback
to check on network availabilityWe need to create the privacy notice for Simacorrect (or whatever name it will end up). This privacy notice should be added on the Grammatek homepage at an HTML anchor similar to https://www.grammatek.com/legal#simaromur
.
Spell checker currently has no awareness of built in or custom (user) dictionaries
If I get 2 suggestions for 1 annotation and select one of them and get a suggestion for the same word I'll get my original word as a suggestion.
E.g. if I write eg dreymi
I will get 2 suggestions for eg
, ég
and mig
.
If I select the suggestion ég
I will have the text ég dreymi
and we don't get any more suggestions at this point.
If I continue typing and add the word að
a new API request is triggered to check the input text ég dreymi að
, now we get a suggestion again for the first word ég
, except in this case Yfirlestur suggests only the word mig
but what also comes as a suggestion is eg
, the original word typed by the user.
This additional suggestion eg
is not being given by the web service nor being stored anywhere in the spell checker service, this is being stored in the UI layer which interfaces text input boxes.
Interestingly enough, this occurs only on android version 12 and newer, meaning I'm unable to reproduce this on android version 11. There were some changes to android.view.textservice on version 12 that are likely causing this but one would need to take a deep dive to investigate this further.
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.