shiningvictory
shiningvictory
CC#
Created by shiningvictory on 10/17/2024 in #help
Need help finding a library for a specific job
I need a library that has a english dictionary that allows me to search through it for a word meeting specific criteria like how many of a specific letter it has.
3 replies
CC#
Created by shiningvictory on 10/5/2024 in #help
This is my code how do I convert the Object of Basewords into a string?
namespace ConsoleApp1 { class Program { static void Main(string[] args) { NetSpell.SpellChecker.Dictionary.WordDictionary oDict = new NetSpell.SpellChecker.Dictionary.WordDictionary(); oDict.DictionaryFile = "en-US.dic"; oDict.Initialize();
NetSpell.SpellChecker.Spelling oSpell = new NetSpell.SpellChecker.Spelling(); int Anumber = 0; int CheckforAs(string word) { int numberofAs = 0; for (int i = 0; i < word.Length; i++) { if(word[i] == 'a' || word[i] == 'A') { numberofAs += 1; } } return numberofAs; } string Aword;
for(int i = 0; i < oDict.BaseWords.Count; i++ ) { if(CheckforAs(oDict.BaseWords[i]) > Anumber) { Anumber = CheckforAs(oDict.BaseWords[i]); Aword = oDict.BaseWords[i]; } }
Console.WriteLine(Aword); Console.ReadLine(); } } }
1 replies
CC#
Created by shiningvictory on 10/5/2024 in #help
✅ Hey IDK how to use NetSpell
This is probably really simple thing to do but IDK the keywords, and functions and methods to Netspell package and I can't find them on internet. I already installed the NetSpell package.
5 replies