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 hexameter patterns.
  
  :return: list of the closest valid hexameter patterns; only candidates with a matching length/number of syllables are considered.
  
  >>> print(MetricalValidator().closest_hexameter_patterns('-UUUUU-----UU--'))
  ['-UU-UU-----UU--']
docstr_tok: ["Find","the","closest","group","of","matching","valid","hexameter","patterns",".",":","return",":","list","of","the","closest","valid","hexameter","patterns",";","only","candidates","with","a","matching","length\/number","of","syllables","are","considered",".",">",">",">","print","(","MetricalValidator","(",")",".closest_hexameter_patterns","(","'-UUUUU","--","--","-UU","--","'",")",")","[","'-UU-UU","--","--","-UU","--","'","]"]
code: def closest_hexameter_patterns(self, scansion: str) -> List[str]:
      """
      Find the closest group of matching valid hexameter patterns.
  
      :return: list of the closest valid hexameter patterns; only candidates with a matching length/number of syllables are considered.
  
      >>> print(MetricalValidator().closest_hexameter_patterns('-UUUUU-----UU--'))
      ['-UU-UU-----UU--']
      """
      return self._closest_patterns(self.VALID_HEXAMETERS, 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 8 for calling the MetricalValidator obj's underlying member method code with example usage: obj.closest_hexameter_patterns(scansion) and returns: self