It's mostly a problem of authors not understanding what swords *are*. As in, what are they, actually, when discussing what weapons are made to do. Different weapons are used for different, entirely practical reasons within the periods they emerge in.
People stopped using the longsword because...