class_docstr: Currently supports validation for: hexameter, hendecasyllables, pentameter.
class_docstr_tok: ["Currently","supports","validation","for",":","hexameter",",","hendecasyllables",",","pentameter","."]
docstr: Find the closest group of matching valid hendecasyllable patterns.
  
  :return: list of the closest valid hendecasyllable patterns; only candidates with a matching length/number of syllables are considered.
  
  >>> print(MetricalValidator().closest_hendecasyllable_patterns('UU-UU-U-U-X'))
  ['-U-UU-U-U-X', 'U--UU-U-U-X']
docstr_tok: ["Find","the","closest","group","of","matching","valid","hendecasyllable","patterns",".",":","return",":","list","of","the","closest","valid","hendecasyllable","patterns",";","only","candidates","with","a","matching","length\/number","of","syllables","are","considered",".",">",">",">","print","(","MetricalValidator","(",")",".closest_hendecasyllable_patterns","(","'UU-UU-U-U-X","'",")",")","[","'-U-UU-U-U-X","'",",","'","U","--","UU-U-U-X","'","]"]
code: def closest_hendecasyllable_patterns(
      self, scansion: str
  ) -> List[str]:
      """
      Find the closest group of matching valid hendecasyllable patterns.
  
      :return: list of the closest valid hendecasyllable patterns; only candidates with a matching length/number of syllables are considered.
  
      >>> print(MetricalValidator().closest_hendecasyllable_patterns('UU-UU-U-U-X'))
      ['-U-UU-U-U-X', 'U--UU-U-U-X']
      """
      return self._closest_patterns(
          self.VALID_HENDECASYLLABLES, scansion
      )
  
file_path: cltk/src/cltk/prosody/lat/metrical_validator.py
imports: import logging
  from typing import List
  from rapidfuzz.distance import DamerauLevenshtein
  from cltk.prosody.lat.scansion_constants import ScansionConstants
label_desc: Use image node_id 11 for calling the MetricalValidator obj's underlying member method code with example usage: obj.closest_hendecasyllable_patterns(scansion) and returns: self