class_docstr: The scansion symbols used can be configured by passing a suitable constants class to
  the constructor.
class_docstr_tok: ["The","scansion","symbols","used","can","be","configured","by","passing","a","suitable","constants","class","to","the","constructor","."]
docstr: If a pentameter line has 14 syllables, it starts and ends with double dactyls.
  
  :param scansion: a string of scansion patterns
  :return: a scansion pattern string starting and ending with double dactyls
  
  >>> print(PentameterScanner().make_dactyls("U  U  U  U  U  U  U  U  U  U  U  U  U  U"))
  -  U  U  -  U  U  -  -  U  U  -  U  U  U
docstr_tok: ["If","a","pentameter","line","has","14","syllables",",","it","starts","and","ends","with","double","dactyls",".",":","param","scansion",":","a","string","of","scansion","patterns",":","return",":","a","scansion","pattern","string","starting","and","ending","with","double","dactyls",">",">",">","print","(","PentameterScanner","(",")",".make_dactyls","(","``","U","U","U","U","U","U","U","U","U","U","U","U","U","U","''",")",")","-","U","U","-","U","U","-","-","U","U","-","U","U","U"]
code: def make_dactyls(self, scansion: str) -> str:
      """
      If a pentameter line has 14 syllables, it starts and ends with double dactyls.
  
      :param scansion: a string of scansion patterns
      :return: a scansion pattern string starting and ending with double dactyls
  
      >>> print(PentameterScanner().make_dactyls("U  U  U  U  U  U  U  U  U  U  U  U  U  U"))
      -  U  U  -  U  U  -  -  U  U  -  U  U  U
      """
      mark_list = string_utils.mark_list(scansion)
      vals = list(scansion.replace(" ", ""))
      new_vals = self.DACTYLIC_PENTAMETER[:-1] + vals[-1]
      corrected = "".join(new_vals)
      new_line = list(" " * len(scansion))
      for idx, car in enumerate(corrected):
          new_line[mark_list[idx]] = car
      return "".join(new_line)
  
file_path: cltk/src/cltk/prosody/lat/pentameter_scanner.py
imports: import re
  import cltk.prosody.lat.string_utils
  from cltk.prosody.lat.metrical_validator import MetricalValidator
  from cltk.prosody.lat.scansion_constants import ScansionConstants
  from cltk.prosody.lat.scansion_formatter import ScansionFormatter
  from cltk.prosody.lat.syllabifier import Syllabifier
  from cltk.prosody.lat.verse import Verse
  from cltk.prosody.lat.verse_scanner import VerseScanner
label_desc: Use image node_id 4 for calling the PentameterScanner obj's underlying member method code with example usage: obj.make_dactyls(scansion) and returns: str