What's the meaning and use of しまわれました in this sentence


I'm doing an exercise in my textbook on 尊敬語、and there's a sentence that I
don't understand well.

The sentence is:

> もう論文かいてしまわれましたか｡

Is "しまわれました" the past tense of "いる"?

If so, with the 尊敬語 shouldn't it be "いらっしゃいました"?.

I'm a bit confused about this, if anyone can please help me understand I'd
really appreciate it!




The past tense of いる is of course いた, but the verb いる is not used in the first
place, and いらっしゃいました is not relevant at all. The verb you're actually seeing
is 書く ("to write"). The object marker を is omitted after 論文.

To break down,

  * 書いて: the te-form of 書く
  * しまわ: the 未然形/pre-nai-form of しまう, which in this case means "to finish ～ing".
  * れ: the continuative- (or pre-masu-) form of れる, which in this case is to show respect to the action taker
  * ました: the ta-form/past-tense of ます
  * か: question marker

> もう論文[書いて]{かいて}しまわれましたか｡  
>  Have you already finished writing your (academic) article?

