Who is heir(Japanese law)?

Tthe person who died  is called a decedent (a person who is inherited) A person who inherits the rights and duties of the decedent is called the heir.

The civil law set out the scope of the heir  in the Part 5(Inheritance).

Article 882 Inheritance shall commence upon the death of the decendant.

However,it’s rather difficult to understand who is heir.So I develop a chat bot, or made a hypertext structure page as follows,

so let’s check it.

First of all, it is the first question.

Is there surviving spouse for those who passed away?

As an answer

(Y) Yes. there is

(N) No. there is not

Move to each case.