class_docstr: Scansion constants can be modified and passed into the constructor if desired.
docstr: Return a list of positions for ending consonants.
docstr_tok: ["Return","a","list","of","positions","for","ending","consonants","."]
code: def _ending_consonants_only(self, letters: List[str]) -> List[int]:
      """Return a list of positions for ending consonants."""
      reversed_letters = list(reversed(letters))
      length = len(letters)
      for idx, letter in enumerate(reversed_letters):
          if not self._contains_vowels(
              letter
          ) and self._contains_consonants(letter):
              return [(length - idx) - 1]
          if self._contains_vowels(letter):
              return []
          if self._contains_vowels(
              letter
          ) and self._contains_consonants(letter):
              return []
      return []
  
imports: import copy
  import logging
  import re
  from typing import List
  import cltk.prosody.lat.string_utils
  from cltk.prosody.lat.scansion_constants import ScansionConstants
label_desc: Use image node_id 11 for calling the Syllabifier obj's underlying member method code with example usage: obj._ending_consonants_only(letters) and returns: list, list, list, list