def is_parsable(self, syntax_to_parse_by='bibtex'):
    '\n\n        Args:\n            syntax_to_parse_by:\n\n        Returns:\n            boolean\n\n        Examples:\n            # bibtex entry with no issues\n            >>> my_buffer = ListBuffer()\n            >>> my_buffer.dataset = [\'@article{5f3ed8a5037f4837be0c7e8e5a1f0948,\',\n            ...    \'title   = "New Horizons biedt eindelijk goede blik op Pluto",\',\n            ...    \'author  = "B. Andeweg",\',\n            ...    \'year    = "2015",\',\n            ...    \'month   = "7",\',\n            ...    \'journal = "Volkskrant",\',\n            ...    \'}\']\n            >>> my_buffer.is_parsable()\n            True\n\n            # unmatched " in author field\n            >>> my_buffer = ListBuffer()\n            >>> my_buffer.dataset = [\'@article{5f3ed8a5037f4837be0c7e8e5a1f0948,\',\n            ...    \'title   = "New Horizons biedt eindelijk goede blik op Pluto",\',\n            ...    \'author  = "B. "Andeweg",\',\n            ...    \'year    = "2015",\',\n            ...    \'month   = "7",\',\n            ...    \'journal = "Volkskrant",\',\n            ...    \'}\']\n            >>> my_buffer.is_parsable()\n            False\n        '
    if (syntax_to_parse_by == 'bibtex'):
        from pybtex.database.input import bibtex
        parser = bibtex.Parser()
        with open('temp_buffer_dump.bib', 'w', encoding='utf8') as temp_buffer_dump_file:
            for each_buffer_row in self.dataset:
                print(each_buffer_row, file=temp_buffer_dump_file)
        with open('temp_buffer_dump.bib', encoding='utf8') as temp_buffer_dump_file:
            try:
                parsed_file = parser.parse_file(temp_buffer_dump_file)
                return True
            except:
                return False
Args:
    syntax_to_parse_by:

Returns:
    boolean

Examples:
    # bibtex entry with no issues
    >>> my_buffer = ListBuffer()
    >>> my_buffer.dataset = ['@article{5f3ed8a5037f4837be0c7e8e5a1f0948,',
    ...    'title   = "New Horizons biedt eindelijk goede blik op Pluto",',
    ...    'author  = "B. Andeweg",',
    ...    'year    = "2015",',
    ...    'month   = "7",',
    ...    'journal = "Volkskrant",',
    ...    '}']
    >>> my_buffer.is_parsable()
    True

    # unmatched " in author field
    >>> my_buffer = ListBuffer()
    >>> my_buffer.dataset = ['@article{5f3ed8a5037f4837be0c7e8e5a1f0948,',
    ...    'title   = "New Horizons biedt eindelijk goede blik op Pluto",',
    ...    'author  = "B. "Andeweg",',
    ...    'year    = "2015",',
    ...    'month   = "7",',
    ...    'journal = "Volkskrant",',
    ...    '}']
    >>> my_buffer.is_parsable()
    False
def is_parsable(self, syntax_to_parse_by='bibtex'):
    '\n\n        Args:\n            syntax_to_parse_by:\n\n        Returns:\n            boolean\n\n        Examples:\n            # bibtex entry with no issues\n            >>> my_buffer = ListBuffer()\n            >>> my_buffer.dataset = [\'@article{5f3ed8a5037f4837be0c7e8e5a1f0948,\',\n            ...    \'title   = "New Horizons biedt eindelijk goede blik op Pluto",\',\n            ...    \'author  = "B. Andeweg",\',\n            ...    \'year    = "2015",\',\n            ...    \'month   = "7",\',\n            ...    \'journal = "Volkskrant",\',\n            ...    \'}\']\n            >>> my_buffer.is_parsable()\n            True\n\n            # unmatched " in author field\n            >>> my_buffer = ListBuffer()\n            >>> my_buffer.dataset = [\'@article{5f3ed8a5037f4837be0c7e8e5a1f0948,\',\n            ...    \'title   = "New Horizons biedt eindelijk goede blik op Pluto",\',\n            ...    \'author  = "B. "Andeweg",\',\n            ...    \'year    = "2015",\',\n            ...    \'month   = "7",\',\n            ...    \'journal = "Volkskrant",\',\n            ...    \'}\']\n            >>> my_buffer.is_parsable()\n            False\n        '
    if (syntax_to_parse_by == 'bibtex'):
        from pybtex.database.input import bibtex
        parser = bibtex.Parser()
        with open('temp_buffer_dump.bib', 'w', encoding='utf8') as temp_buffer_dump_file:
            for each_buffer_row in self.dataset:
                print(each_buffer_row, file=temp_buffer_dump_file)
        with open('temp_buffer_dump.bib', encoding='utf8') as temp_buffer_dump_file:
            try:
                parsed_file = parser.parse_file(temp_buffer_dump_file)
                return True
            except:
                return False