sympy_gamma
sympy_gamma copied to clipboard
More robust terminology detection
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?".
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.
Same thing happens with terms like ray
and line
.
Maybe get_close_matches doesn't work with case differences.