I learned it as: "I before E except after C, unless sounded as 'A' as in 'neighbor' and 'weigh'."
But that still leaves out "weird". It's definitely an outlier.
From Anglo-Saxon ‘Wyrd’, which does make more sense in modern English spelling/phonetics:
https://en.wikipedia.org/wiki/Wyrd
Well, you have to seize any help available for English spelling.