# Spanish Flashcards
Here is the aggregated list of vocabulary parses from this page.
```dataviewjs
let pages = dv.pages("#flashcards/spanish");
if (pages.length === 0) {
dv.paragraph("**Error:** No notes found containing the `#flashcards/spanish` tag.");
} else {
let map = new Map();
// Iterate through every page found with the tag
for (let pg of pages) {
let content = await dv.io.load(pg.file.path);
let arr = content.split("\n");
let insideCodeBlock = false;
for (let i = 0; i < arr.length; i++) {
let rawLine = arr[i];
let line = rawLine.trim();
// Skip code block fences to prevent parsing raw code
if (line.startsWith("```")) {
insideCodeBlock = !insideCodeBlock;
continue;
}
if (insideCodeBlock) continue;
if (rawLine.includes("::")) {
let fields = rawLine.split("::");
let sw = fields[0].trim();
let ew = fields[1].trim();
if (map.has(sw)) {
let _t = map.get(sw);
// Prevent duplicate values if the same card exists in multiple files
if (!_t.includes(ew)) {
_t.push(ew);
}
map.set(sw, _t);
} else {
map.set(sw, [ew]);
}
}
}
}
dv.paragraph(`Found ${map.size} unique Spanish terms across ${pages.length} file(s):`);
for (const [key, val] of map.entries()) {
dv.paragraph(`- **${key}**: ${val.join(", ")}`);
}
}
```