magic-amber•2y ago
Words counting twice in Word Library/Word Browser/ Learning Statuses
My "learning" count went from ~1700 to over 2900 overnight, after browsing the word library I found that a bunch of characters and symbols have been either added twice or just added for no apparent reason. Additionally, all of them lack pronunciation.
The issue somewhat resolved itself after I deleted the list and then re-imported form ANKI but this resulted in my 1000+ ignored words not being included in the list.
Is there some known way to only import the ignored words from the old Backup.json file or alternatively remove the words without pronunciation?



1 Reply
magic-amberOP•2y ago
Fixed it using C#, here is my awful code if anyone cares:
static List<string> Fix = new List<string>();
static string textString;
// ◴ if as pronoucn9atoion
// [["bla◴bla",-1],...,["znor◴znor",-1]]
static void Main(string[] args)
{
Console.OutputEncoding = System.Text.Encoding.UTF8;
readFile();
for (int i = 0; i < textString.Split(']').Count(); i++)
{
if (textString.Split(']')[i].Contains("◴"))
{
Fix.Add($"{textString.Split(']')[i]}]");
}
}
writeFile();
Console.ReadLine();
}
static void writeFile()
{
StreamWriter writeFile = new StreamWriter("Doc2.txt");
for (int i = 0; i < Fix.Count(); i++)
{
writeFile.Write($"{Fix[i]}");
}
writeFile.Close();
System.Environment.Exit(0);
}
// Load file method that simply copies data fro mfile into list
static void readFile()
{
string s;
StreamReader readFile = new StreamReader("Doc.txt");
Fix.Clear();
while ((s = readFile.ReadLine()) != null)
{
textString = s;
Console.WriteLine(s);
}
readFile.Close();
}
Though i still have no idea what caused the issue to begin with
¯\_(ツ)_/¯