in reply to Challenge: Predictive Texting

If instead of a digit, a '-' is passed in, it means that the word is finished being spelled but the "suggested" word is incorrect. Digits will resume following a '+'.

Does that mean that after a '-' is passed in, you'll pass a '+' before resuming passing digits?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: Challenge: Predictive Texting
by Limbic~Region (Chancellor) on Jan 10, 2007 at 17:22 UTC
    BrowserUk,
    The AM is correct. If for instance:
    <previous input> Input: 7 Output: kiss Input: - Output: lips Input: + Output: lips <repeated> Input: <digit>

    Cheers - L~R

      Sorry, but I'm still not clear what 'the word is finished being spelled' means.

      Could it be paraphrased, for example, by 'the suggested word is the same length as the intended word?

        Not_a_Number,
        Let me walk you through a complete example and see if that does not clarify things:
        Mystery text = "kiss me" input: 5 output: l input: 4 output: li input: 7 output: lit input: 7 ouput: lips input: - # correct word length, wrong word output: kiss input: + # correct word output: kiss # clusmy interface - repeats correct word input: 6 output: n input: 3 output: of input: - # correct word length, wrong word output: me input: + # correct word output: me # clusmy interface - repeats correct word

        Cheers - L~R

Re^2: Challenge: Predictive Texting
by Anonymous Monk on Jan 10, 2007 at 16:46 UTC
    Each time you pass '-', the program returns another guess, until '-','+', when more letters/digits are added.