class_docstr: A short line, or half line, is a
class_docstr_tok: ["A","short","line",",","or","half","line",",","is","a"]
docstr: Alliterations is the repetition of a same sound pattern (usually the first sound) of important words.
  This usually excludes stop words.
  
  :param other_short_line: short line to compare with
  :return:
docstr_tok: ["Alliterations","is","the","repetition","of","a","same","sound","pattern","(","usually","the","first","sound",")","of","important","words",".","This","usually","excludes","stop","words",".",":","param","other_short_line",":","short","line","to","compare","with",":","return",":"]
code: def find_alliterations(self, other_short_line):
      """
      Alliterations is the repetition of a same sound pattern (usually the first sound) of important words.
      This usually excludes stop words.
  
      :param other_short_line: short line to compare with
      :return:
      """
      self.n_alliterations = 0
      self.alliterations = []
      for j, sound1 in enumerate(self.first_sounds):
          word1 = old_norse_normalize(self.tokenized_text[j])
          for k, sound2 in enumerate(other_short_line.first_sounds):
              word2 = old_norse_normalize(
                  other_short_line.tokenized_text[k]
              )
              if word1 not in STOPS and word2 not in STOPS:
                  if (
                      isinstance(
                          sound1, old_norse_transcription.Consonant
                      )
                      and isinstance(
                          sound2, old_norse_transcription.Consonant
                      )
                      and sound1.ipar == sound2.ipar
                  ):
                      self.alliterations.append((word1, word2))
                      self.n_alliterations += 1
                  elif isinstance(
                      sound1, old_norse_transcription.Vowel
                  ) and isinstance(
                      sound2, old_norse_transcription.Vowel
                  ):
                      self.alliterations.append((word1, word2))
                      self.n_alliterations += 1
      return self.alliterations, self.n_alliterations
  
imports: import re
  from math import floor
  from typing import Dict, List, Tuple, Union
  import cltk.phonology.non.syllabifier
  import cltk.phonology.non.transcription
  from cltk.core.cltk_logger import logger
  from cltk.phonology.non.utils import Transcriber
  from cltk.phonology.syllabify import Syllabifier
  from cltk.stops.non import STOPS
  from cltk.tag.pos import POSTag
  from cltk.tokenizers.non import OldNorseWordTokenizer
label_desc: Use image node_id 6 for calling the ShortLine obj's underlying member method code with example usage: obj.find_alliterations(other_short_line) and returns: self,  self