Add autocomplete methods (from text) to the frontend public API

also strip right word
Add tests for autocomplete methods