CU-CIS-1090-PSC / CIS-1090-Project1

CIS-1090-Project1
0 stars 19 forks source link

Flags capitalized words as wrong after they have been added to personal dictionary. #15

Open juanalbap opened 1 year ago

juanalbap commented 1 year ago

I made some edits to the spell checker code, eliminated the .toLowerCase() from the personal dictionary check and included an || operator in the regular checkDictionary, like so:

function isSpelledRight(word){ if ( !isWord(word) ) return true; else if ( checkPersonalDictionary(word) ) return true; else if (checkDictionary(word.toLowerCase()) || checkDictionary(word)) return true; else return false; }

The problem has not been solved, the test that detects "Juan" as correct after adding it still flags wrong.