sympy_gamma icon indicating copy to clipboard operation
sympy_gamma copied to clipboard

More robust terminology detection

Open debugger22 opened this issue 10 years ago • 3 comments

When I type point it interprets it as p*o*i*n*t and when I type Point it gives me relevant details from the docs.

A user won't be searching for class name(because they don't know it). So we should enhance this search process maybe by capitalizing the first char or by just suggesting a "Did you mean?".

debugger22 avatar Apr 27 '14 18:04 debugger22

That is implemented in https://github.com/sympy/sympy_gamma/blob/master/app/logic/utils.py#L456. I'm not sure why it doesn't see Point as a close match, though.

lidavidm avatar Apr 27 '14 18:04 lidavidm

Same thing happens with terms like ray and line.

debugger22 avatar Apr 27 '14 19:04 debugger22

Maybe get_close_matches doesn't work with case differences.

asmeurer avatar Apr 27 '14 23:04 asmeurer