This CLI tool give you the english definition of a word base, also use a Trie to give you predictions as you type your word.
Table of Contents
Normal Funtionality:
Pipe Functionality:
This project return the definition of a word in english and use a Trie to give you predictions as you type your word.
The project is divided in two parts:
- cli: The CLI tool
- cli.test: The test project
The CLI tool is divide in two files Program.cs
and Trie.cs
. The Program.cs
is the main file that run the CLI tool and the Trie.cs
is the data structure that hold the dictionary.
The projecr is structure as follow:
.
├── CliApp.sln
├── LICENSE
├── README.md
├── data
│ └── dictionary_compact.json -- Dictionary
├── cli
│ ├── CliApp.csproj
│ ├── Program.cs -- Program
│ └── Trie.cs -- Data Structure
└── cli.test
├── GlobalUsings.cs
├── UnitTest1.cs
└── cli.test.csproj -- Test Project
- .NET 8.0
dotnet run --project cli
dotnet test