I am in the process of doing textual analysis on the Quran using software, but I am not sure I am finding a reliable, quality, accurate version of the Quran (in Arabic) which my computer can parse. What are the most accurate / standard versions of the Quran in Arabic which are in plain text format (or JSON, or spreadsheet, etc., just not as an image, PDF, or app)? I need it in some sort of plain text format which is easy for my computer to parse, so using something that is distributed over 114 wiki pages won't be the easiest to work with (and Arabic PDFs are usually not possible to read with a computer).
Some background. Searching the web you quickly find the "Quran code", which says there are 2,698 occurrences of the word Allah in the Quran. Many other people say this too. But so far I have found that there are different numbers of the word ٱلله in the Quran (I removed diacritics too), depending on which version I grabbed/found.
Neither of those are even close to the number 2698. And given the ~100 word disparity even between these two "versions" is unnerving to say the least. It means at least one of them is wrong. So I am looking for a good copy which I can work with on my computer.