sandsq / alc-rs

MIT License
0 stars 0 forks source link

Figure out what to do with trying to score an ngram that can't be typed by the layout #13

Closed sandsq closed 3 months ago

sandsq commented 3 months ago

If we simply pass on it, it will contribute 0 to the effort score, thus making the layout seem better even though it isn't actually able to type the ngram in question

sandsq commented 3 months ago

Maybe add some fixed, large penalty (larger than any feasible sequence could score) and make a note at the end of the process notifying the user that some ngrams are not typeable

sandsq commented 3 months ago

Or maybe just throw an error

sandsq commented 3 months ago

I think throw an error so that one can't accidentally optimize for a layout but miss keys that are needed for typing the particular dataset