Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Handling of sentences wrong for Polish? #2

Open
milekpl opened this issue Feb 28, 2016 · 1 comment
Open

Handling of sentences wrong for Polish? #2

milekpl opened this issue Feb 28, 2016 · 1 comment

Comments

@milekpl
Copy link

milekpl commented Feb 28, 2016

After correcting a typo for Polish, for example in "jade" to "jadę", I get yet another suggestion that the word should end with the dot. This is probably due to the missing punctuation at the sentence end. The problem is that there already was punctuation, and you should submit the whole sentence to LT server.

To replicate:

  • Type 'Jade do domu.' (after selecting Polish).
  • Jade will be highlighted in red. Select 'jadę' from the drop-down.
  • Now 'jadę.' will be suggested.
@jordimas
Copy link
Collaborator

Android operating system sends fragments of sentences to the spell checker. You do not have control on what gets sent (the size of the fragment) neither you have an ID that helps you to identify these fragments (some of them are sent multiple times). As result, for a sentence like "Hello, what's your name? I live in Barcelona" you can get two fragments:

  • Hello, what's your
  • name? I live in Barcelona

And you cannot control this. You have several problems due to this:

  • Any rule that depends on elements that are far way. if you have a rule that looks if there is an opening parenthesis "(" there is also a closing one ")"
  • Any rule that depends on words near by.

What we are doing today is:

  • As new text comes in re-evaluate previous errors. For example, if you type "Hello (this is an option)" and you get "Hello (this " and mark this an error, we clean the error when we get the full sentence and see the closing parenthesis.
  • We ignore the rule UPPERCASE_SENTENCE_START that makes this problem very oblivious.

For the case that you are suggesting, may be makes sense to ignore this rule too. At the moment, there is no great solution for this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants