class_docstr: Validate input only when it appears in this list of sentences.
  
  :param sentences: List of sentences.
  :param ignore_case: If True, case-insensitive comparisons.
class_docstr_tok: ["Validate","input","only","when","it","appears","in","this","list","of","sentences",".",":","param","sentences",":","List","of","sentences",".",":","param","ignore_case",":","If","True",",","case-insensitive","comparisons","."]
code: def __init__(
      self,
      sentences,
      ignore_case=False,
      error_message="Invalid input",
      move_cursor_to_end=False,
  ):
      assert all(isinstance(s, string_types) for s in sentences)
      assert isinstance(ignore_case, bool)
      assert isinstance(error_message, string_types)
  
      self.sentences = list(sentences)
      self.ignore_case = ignore_case
      self.error_message = error_message
      self.move_cursor_to_end = move_cursor_to_end
  
      if ignore_case:
          self.sentences = set([s.lower() for s in self.sentences])
  
imports: from __future__ import unicode_literals
  from prompt_toolkit.validation import Validator, ValidationError
  from six import string_types
label_desc: Use image node_id 1 to create a new SentenceValidator object from inherited base classes: Validator with example: obj = SentenceValidator(sentences, ignore_case, error_message, move_cursor_to_end)