Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
C_appaco_lib_exemple
C_staticLib_include
JS_appaco_lib
JS_appaco_lib_exemple
appaco_lib
doc_appaco_lib
README.md
ReadMe_principal.txt

README.md

appacoLib :

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

Appaco_lib features:

• 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)

Supported language:

appaco_lib is coded in two language : javascript and c/c++.

  1. JS appaco_lib : used in client side, do all the work locally, and it can get result from server side.

  2. 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.

JS appaco_lib

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

C appaco_lib

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;

examples

example 1 : source from local file

example 2 : source from server file

example 3 : result from server CGI

example 4 : result from server PHP

You can’t perform that action at this time.