彼が来たときは私はその手紙を書き終えていた。

Sentence Analyzer

来た とき その 手紙 書き終えていた

English Translation

I had written the letter when he came.

Furigana

(かれ)()たときは(わたし)はその手紙(てがみ)()()えていた。

Romanji

Kare ga kita toki wa watashi wa sono tegami o kakioeteita.

Words

(かれ)
he; him; his; boyfriend
()
indicates sentence subject (occasionally object); indicates possessive (esp. in literary expressions); but; however; still; and
来る (きたる)
next (e.g. "next April"); forthcoming; coming; to come; to arrive; to be due to
とき (とき)
regular (stops at every station) Jouetsu-line Shinkansen
()
topic marker particle; indicates contrast with another option (stated or unstated); adds emphasis
(わたし、わたくし)
I; me; private affairs; personal matter; secrecy; selfishness
其の (その)
that (something or someone distant from the speaker, close to the listener; actions of the listener, or ideas expressed or understood by the listener); the; um...; er...; uh...
手紙 (てがみ)
letter
()
indicates direct object of action; indicates subject of causative expression; indicates an area traversed; indicates time (period) over which action takes place; indicates point of departure or separation of action; indicates object of desire, like, hate, etc.
書く (かく)
to write; to compose; to pen; to draw; to paint

Kanji

Readings: ヒ、 かれ、 かの、 か.の
Meanings: he, that, the
Readings: ライ、 タイ、 く.る、 きた.る、 きた.す、 き.たす、 き.たる、 き、 こ
Meanings: come, due, next, cause, become
Readings: シ、 わたくし、 わたし
Meanings: private, I, me
Readings: シュ、 ズ、 て、 て-、 -て、 た-
Meaning: hand
Readings: シ、 かみ
Meaning: paper
Readings: ショ、 か.く、 -が.き、 -がき
Meaning: write
Readings: シュウ、 お.わる、 -お.わる、 おわ.る、 お.える、 つい、 つい.に
Meanings: end, finish