Your title is grammatically incorrect. It should say "Was this written by an American or a foreigner?" There is no way for us to answer that question. It could have been written by any native speaker but the standard of English suggests it was written by a non-native.
Where did you find those sentences? Why do you need to know if it was written by an American or not? What do you mean by "and why?"?
Student or Learner