class_docstr: Simple autocompletion on a list of words.
  
  :param words: List of words.
  :param ignore_case: If True, case-insensitive completion.
  :param meta_dict: Optional dict mapping words to their meta-information.
  :param WORD: When True, use WORD characters.
  :param sentence: When True, don't complete by comparing the word before the
      cursor, but by comparing all the text before the cursor. In this case,
      the list of words is just a list of strings, where each string can
      contain spaces. (Can not be used together with the WORD option.)
  :param match_middle: When True, match not only the start, but also in the
                       middle of the word.
class_docstr_tok: ["Simple","autocompletion","on","a","list","of","words",".",":","param","words",":","List","of","words",".",":","param","ignore_case",":","If","True",",","case-insensitive","completion",".",":","param","meta_dict",":","Optional","dict","mapping","words","to","their","meta-information",".",":","param","WORD",":","When","True",",","use","WORD","characters",".",":","param","sentence",":","When","True",",","do","n't","complete","by","comparing","the","word","before","the","cursor",",","but","by","comparing","all","the","text","before","the","cursor",".","In","this","case",",","the","list","of","words","is","just","a","list","of","strings",",","where","each","string","can","contain","spaces",".","(","Can","not","be","used","together","with","the","WORD","option",".",")",":","param","match_middle",":","When","True",",","match","not","only","the","start",",","but","also","in","the","middle","of","the","word","."]
code: def __init__(
      self,
      words,
      ignore_case=False,
      meta_dict=None,
      WORD=False,
      sentence=False,
      match_middle=False,
  ):
      assert not (WORD and sentence)
  
      self.words = list(words)
      self.ignore_case = ignore_case
      self.meta_dict = meta_dict or {}
      self.WORD = WORD
      self.sentence = sentence
      self.match_middle = match_middle
      assert all(isinstance(w, string_types) for w in self.words)
  
imports: from __future__ import unicode_literals
  from six import string_types
  from prompt_toolkit.completion import Completer, Completion
label_desc: Use image node_id 1 to create a new WordCompleter object from inherited base classes: Completer with example: obj = WordCompleter(words, ignore_case, meta_dict, WORD, sentence, match_middle)