Sam, are you a Moroccan doctor? should also be accepted. It was accepted in other lessons. The person who is being addressed is usually stated at first, unless we are doing "LITERAL" contextual translation.
Its a computer. It doesn't know that it is trivial.
Unfortunately, it also accepts as typos many things that are just plain wrong, notably omission or presence of single letter prefixes or ending changes.