def load_poem_from_paragraphs(paragraphs):
        """

        :param paragraphs: list of stanzas (list of strings)
        :return: list of Fornyrdhislag or Ljoodhhaattr instances
        """
        poem = []
        for paragraph in paragraphs:
            if MetreManager.is_fornyrdhislag(paragraph):
                fnl = Fornyrdhislag()
                fnl.from_short_lines_text(paragraph)
                fnl.syllabify(old_norse_syllabifier.hierarchy)
                fnl.to_phonetics()
                poem.append(fnl)
            elif MetreManager.is_ljoodhhaattr(paragraph):
                lh = Ljoodhhaattr()
                lh.from_short_lines_text(paragraph)
                lh.syllabify(old_norse_syllabifier.hierarchy)
                lh.to_phonetics()
                poem.append(lh)
            else:
                stanza = UnspecifiedStanza()
                stanza.from_short_lines_text(paragraph)
                stanza.syllabify(old_norse_syllabifier.hierarchy)
                stanza.to_phonetics()
                poem.append(stanza)
        return poem
def load_poem_from_paragraphs ( paragraphs ) : poem = [ ] for paragraph in paragraphs : if MetreManager . is_fornyrdhislag ( paragraph ) : fnl = Fornyrdhislag ( ) fnl . from_short_lines_text ( paragraph ) fnl . syllabify ( old_norse_syllabifier . hierarchy ) fnl . to_phonetics ( ) poem . append ( fnl ) elif MetreManager . is_ljoodhhaattr ( paragraph ) : lh = Ljoodhhaattr ( ) lh . from_short_lines_text ( paragraph ) lh . syllabify ( old_norse_syllabifier . hierarchy ) lh . to_phonetics ( ) poem . append ( lh ) else : stanza = UnspecifiedStanza ( ) stanza . from_short_lines_text ( paragraph ) stanza . syllabify ( old_norse_syllabifier . hierarchy ) stanza . to_phonetics ( ) poem . append ( stanza ) return poem
:param paragraphs: list of stanzas (list of strings)
        :return: list of Fornyrdhislag or Ljoodhhaattr instances