E2BWordBank 1.0.3
See the version list below for details.
dotnet add package E2BWordBank --version 1.0.3
NuGet\Install-Package E2BWordBank -Version 1.0.3
<PackageReference Include="E2BWordBank" Version="1.0.3" />
paket add E2BWordBank --version 1.0.3
#r "nuget: E2BWordBank, 1.0.3"
// Install E2BWordBank as a Cake Addin #addin nuget:?package=E2BWordBank&version=1.0.3 // Install E2BWordBank as a Cake Tool #tool nuget:?package=E2BWordBank&version=1.0.3
E2BWordBank : Overview
The E2BWordBank package provides a comprehensive English-to-Bangla word database for easy integration into .NET applications.
Source Code
Project Link: https://github.com/faisalcse1/E2BWordBank
Installation
NuGet\Install-Package E2BWordBank
Features
GetAllWords();
GetWordsStartingWith(string prefix, WordType type= WordType.En);
FindWord(string prefix, WordType type = WordType.En);
WordRepository
A simple dictionary repository class that allows for managing and retrieving words from a word database. The class provides methods for retrieving all words, filtering words based on a prefix, and finding a single word that exactly matches a given prefix.
Methods
1. GetAllWords()
- Description: Retrieves all words from the dictionary.
- Returns: A list of
Word
objects containing all available words in the dictionary.
2. GetWordsStartingWith(string prefix, WordType type = WordType.En)
- Description: Retrieves words that start with the specified prefix and match the given word type.
- Parameters:
prefix
(string): The starting substring to filter words by.type
(WordType): The category of words to retrieve (e.g.,WordType.En
for English &WordType.Bn
for Bangla). Defaults toWordType.En
(English).
- Returns: A list of
Word
objects that start with the specified prefix and match the given type.
3. FindWord(string prefix, WordType type = WordType.En)
- Description: Finds a single word that exactly matches the specified prefix and type.
- Parameters:
prefix
(string): The exact word or substring to match.type
(WordType): The type/category of the word to retrieve (default isWordType.En
for English).
- Returns: A single
Word
object that matches the exact prefix and type. Returnsnull
if no match is found.
Key Notes
Word
Class: Represents a word in the dictionary. This class holds details about individual words in your dictionary, such as the word itself, its type, and any other related information.WordType
Enum: Differentiates between different types of words (e.g., English, Bengali). This allows filtering words by language or category.Static Methods: All methods in the
WordRepository
class are static, meaning you can call them directly without creating an instance of theWordRepository
class.
Example Usage
// Retrieve all words
List<Word> allWords = WordRepository.GetAllWords();
// Retrieve words starting with a specific prefix
List<Word> wordsStartingWithPrefix = WordRepository.GetWordsStartingWith("pro");
// Find a specific word by exact match
Word foundWord = WordRepository.FindWord("programming");
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
.NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETCoreApp 3.1
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.6.1
- Newtonsoft.Json (>= 13.0.3)
-
net5.0
- Newtonsoft.Json (>= 13.0.3)
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
-
net7.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.