Word autocompletion algorithm that uses tries (prefix trees) for storing dictionaries
The specification of algorithm is presented in the ALGORITHM.md file. It also contains design principles, clarifications and description of possible soft spots and improvements.
There is a demo of autocompletion system that uses the algorithm.
-
Go to the
react-demo
directory:$ cd react-demo
-
Install required dependencies:
$ yarn install
-
Run the app
yarn start
Demo app should open automatically in your browser. If not, type localhost:3000 in the URL bar and hit the enter button.
-
Go to the
react-demo
directory:$ cd react-demo
-
Install required dependencies:
$ yarn install
-
Build the project:
$ yarn build
In the go-implementation
directory, there is a simple example application that showcases a possible CLI program autocompletion feature.
-
Make sure that you have installed Go (>=1.20).
-
Go to the
go-implementation
directory:$ cd go-implementation
-
Run the application:
$ go run .
All dependencies should be installed automatically.