add a function to generate a csv that can be imported in anki