APProximate AutoComplete Library
Appaco_Lib is library which facilitates and speeds up writing by offering a list of words (suggestions) that complement the few characters typed into the input text, while allowing errors in the prefix entered by the user, all by improving the quality of the results with ranking system, according to the importance (score) of words. And it’s support static and dynamic ranking.
... see details
• exact autocomplete : list of suggestion contain only words that begin by the same prefix typed in text box.
• approximate autocomplete : we allow error in prefix typed in text box, it's mean we show word that begin by the same prefix and also the word that begin by prefix similar to the prefix typed.
• static ranking : words will be displayed according to the importance of words.
• dynamic ranking : static ranking + update the score of the selected word (example +1)
• local support for dictionary source, it support huge number of words all in local (example English dictionary).
• Ajax query to get the results from server (or sometimes the dictionary source file)
• very fast response (trie based).
• sport one character typed to get results (use the ranking system)
appaco_lib is coded in two language : javascript and c/c++.
-
JS appaco_lib : used in client side, do all the work locally, and it can get result from server side.
-
C appaco_lib : can be used in any type of application, and also we can use it in a server side using the module FastCGI.
those two library can be used separately. and also we can use them both in the same context, js version in client side and c/c++ on server side.
approximate_autoComplete(input_id,source,options_in)
typeSearch
typePrintResults
isExactSearchMethod
topK_CHAR_SEPARATOR
words_SEPARATOR
doSort
TOPK_SIZE_GROUP
delay
minLength
sourceFromUrl
resultsFromUrl
score_update_unit
item_ID_OnClick_nextResult
dataToSend
ajaxRequestMethod
Options* new_options();
void print_options(Options *my_option);
void initialize_AutoComplete(const char source,Options my_option_in);
ListString get_results(char queryWord);
ListString *get_next_result();
void Print_ListString(ListString list);
void json_Print_ListString(ListString list);
typedef struct Options {...} Options;
example 1 : source from local file
example 2 : source from server file
example 3 : result from server CGI
example 4 : result from server PHP