Skip to content

Commit

Permalink
DATA: Convert latest data
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhieb committed Jun 6, 2024
1 parent 95532f1 commit acf33fc
Show file tree
Hide file tree
Showing 6 changed files with 1,292 additions and 793 deletions.
13 changes: 7 additions & 6 deletions data/Components.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,11 @@ export default class Components extends Map {
const componentRecords = parseCSV(componentsCSV, Components.csvOptions)
const tokenRecords = parseCSV(tokensCSV, Components.csvOptions)

if (componentRecords.length === tokenRecords.length) {
const susPath = path.resolve(import.meta.dirname, `./sus.txt`)
await appendFile(susPath, `${ this.language }\n`, `utf8`)
}
// Uncomment to generate a list of languages with the same number of tokens and components.
// if (componentRecords.length === tokenRecords.length) {
// const susPath = path.resolve(import.meta.dirname, `./sus.txt`)
// await appendFile(susPath, `${ this.language }\n`, `utf8`)
// }

const records = new Map
const cols = Components.columns
Expand Down Expand Up @@ -126,8 +127,8 @@ export default class Components extends Map {

}

return this.saveTransliterations()
.then(issues.save())
await this.saveTransliterations()
await issues.save()

}

Expand Down
Loading

0 comments on commit acf33fc

Please sign in to comment.