Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

0xTheProDev/Spell-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spell-Checker License: GPL v3

A Simple Efficient C library for spell checking

Version

1.0

Usage

Bash:

./speller [dictionary] text

Command-Line:

./speller.exe [dictionary] text

Details

  • ./speller or ./speller.exe: Output File Name

  • [dictionary]: Dictionary File (optional)

  • text: Text file to be checked

Return Value

0 Successfuly Executed

1 Invalid Argument Supplied

2 Failed to load/unload Dictionary from Memory

3 Failed to open Text File (PATH specified)

DICTIONARY.H

File Location: src/include/Dictionary.h

Include: #include "include/Dictionary.h"

API Usage

  • Returns true if word is in dictionary else false.
  • Loads dictionary into memory. Returns true if successful else false.
  • Returns number of words in dictionary if loaded else 0 if not yet loaded.
  • Unloads dictionary from memory. Returns true if successful else false.