computers_tree = {
        "node": "Is it a device used for computations?",
        "yes": {"node": "Is it a handheld device?"},
        "no": {
            "node": "Is it used for entertainment mostly?",
            "yes": {
                "node": "Is it made to show graphical content?",
                "no": {"node": "Is it used to listen to audio mostly?"},
            },
        }
}

tool_tree = {
  "node": "Is it used for some kind of measuring?",
  "yes": {
    "node": "Is it used for temperature measurement?",
    "no": {
      "node": "Is it used for pressure measurement?",
      "no": {
        "node": "Is it used for length measurement?",
        "no": {
          "node": "Is it used in laboratories?",
          "no": {
            "node": "Is it used for force measurement?",
          }
        }
      }
    }
  },
  "no": {
    "node": "Is it some kind of a cutting tool?",
    "yes": {
      "node": "Is it some kind of power tool?",
      "no": {
        "node": "Is it mainly used in woodworking?",
      }
    },
    "no": {
      "node": "Is it used for construction?",
      "yes": {
        "node": "Is it a heavy machine?",
        "no": {
          "node": "Is it used for mixing?",
        }
      },
      "no": {
        "node": "Is it an office equipment mainly?",
        "yes": {
          "node": "Is it used for printing?",
          "no": {
            "node": "Is it used for cutting?",
          }
        },
        "no": {
          "node": "Is it used mainly in a laboratory?",
          "no": {
            "node": "Is it a safety equipment?",
          },
        }
      }
    }
  }
}

electronic_tree = {
    "node": "Is it connected more with entertainment, computations, PC, video and audio rather than with anything else?",
    "no": {
        "node": "Is it used mostly during cooking?",
        "yes": {
            "node": "Can it heat food or drinks?",
        },
        "no": {
            "node": "Is it used mostly for cleaning?",
            "no": {
                "node": "Is this for personal beauty, grooming or healtcare?",
                "no": {
                    "node": "Is it mainly used outdoors?",
                    "yes": {
                        "node": "Do some people use it indoors?",
                        "yes": tool_tree,
                        "no": tool_tree,
                    },
                    "no": {"node": "Is it part of electrical network?"},
                },
            }
        }
    },
    "yes": computers_tree,
}

food_tree = {
  "node": "Is it a beverage?",
      "yes": {
          "node": "Is it primarily made from fruits, vegetables?",
          "yes": {
              "node": "Does it contain alcohol?",
              "no": {
                  "node": "Is it some kind of a smoothie?"
              }
          },
          "no": {
              "node": "Is it tea-based?",
              "no": {
                  "node": "Is it coffee-based?",
                  "no": {
                      "node": "Is it usually carbonated?",
                      "no": {
                          "node": "Is it some kind of a milk, milk based?"
                      }
                  }
              }
          }
      },
      "no": {
          "node": "Is it a dish ready to be consumed?",
          "yes": {
              "node": "Is it a dessert?",
              "yes": {
                  "node": "Is it a pastry?",
                  "yes": {
                      "node": "Does it usually have a filling inside?",
                  },
                  "no": {
                      "node": "Do people usually store it in the fridge?",
                  }
              },
              "no": {
                  "node": "Is it typically served warm or hot?",
                  "yes": {
                      "node": "Is it a main dish?",
                      "yes": {"node": "Is it usually vegetarian?"},
                      "no": {"node": "Is it usually vegetarian?"}
                  },
                  "no": {
                      "node": "Is it some kind of a food supplement like sauce, garnish, spices?",
                      "no": {"node": "Is the item primarily made from grains?"}
                  }
              },
          },
          "no": {
              "node": "Is it some kind of a food supplement like sauce, spices, oil?",
              "yes": {
                  "node": "Is it a liquid?",
                  "yes": {
                      "node": "Is it a sauce?",
                  },
                  "no": {
                      "node": "Is it a type of spice?",
                  }
              },
              "no": {
                  "node": "Is it a vegetable, fruit?",
                  "yes": {
                      "node": "Is it typically consumed raw?",
                  },
                  "no": {
                      "node": "Is it some kind of a baked goods?"
                  }
              }
          }
      }
}

animal_tree = {
  "node": "Can it fly?",
  "yes": {
    "node": "Is it a bird?",
    "yes": {
      "node": "Is it a small bird?",
      "yes": {
        "node": "Is it known for its singing?",
        "no": {
          "node": "Is it a colorful bird?",
        }
      },
      "no": {
        "node": "Is it a large bird?",
        "yes": {
          "node": "Is it a bird of prey?",
          "no": {
            "node": "Is it known for its colorful plumage?",
          }
        },
      }
    },
  },
  "no": {
    "node": "Does it live in water?",
    "yes": {
      "node": "Is it a mammal?",
      "yes": {
        "node": "Is it a large mammal?",
        "yes": {
          "node": "Is it a type of whale?",
        },
      },
      "no": {
        "node": "Is it a type of fish?",
        "yes": {
          "node": "Is it a large fish?",
          "no": {
            "node": "Is it known for its bright colors?",
          }
        },
        "no": {
          "node": "Is it a type of crustacean?",
        }
      }
    },
    "no": {
      "node": "Is it a mammal?",
      "yes": {
        "node": "Is it a domestic animal?",
        "yes": {
          "node": "Is it a type of pet?",
          "yes": {
            "node": "Is it a type of dog?",
            "yes": {
              "node": "Is it a large dog?",
              "no": {
                "node": "Is it a small dog?",
              }
            },
            "no": {
              "node": "Is it a type of cat?",
            }
          },
        },
        "no": {
          "node": "Is it a large wild animal?",
          "yes": {
            "node": "Is it a type of big cat?",
            "yes": {
              "node": "Is it known for its stripes?",
            },
          },
          "no": {
            "node": "Is it a type of rodent?",
            "yes": {
              "node": "Is it known for its large front teeth?",
            },
            "no": {
              "node": "Is it a type of primate?",
              "yes": {
                "node": "Is it known for its intelligence?",
              },
              "no": {
                "node": "Is it known for its spines?",
              }
            }
          }
        }
      },
      "no": {
        "node": "Is it a reptile?",
        "yes": {
          "node": "Is it a type of snake?",
          "yes": {
            "node": "Is it venomous?",
          },
          "no": {
            "node": "Is it a type of lizard?",
          }
        },
        "no": {
          "node": "Is it an amphibian?",
        }
      }
    }
  }
}

insects_tree = {
  "node": "Is it an insect in terms of biology?",
  "yes": {
    "node": "Does it fly?",
    "yes": {
      "node": "Is it a beetle?",
      "yes": {
        "node": "Does it have a specific color in its name?",
      },
      "no": {
        "node": "Is it a type of fly?",
        "yes": {
          "node": "Is it related to bees?",
        },
        "no": {
          "node": "Is it some kind of a butterfly?",
        }
      }
    },
    "no": {
      "node": "Is it some kind of a cricket?",
      "yes": {
        "node": "Is it usually found in fields?",
        "no": {
          "node": "Is it usually found in grass?",
        }
      },
      "no": {
        "node": "Is it a locust?",
        "no": {
          "node": "Is it some kind of an ant?",
        }
      }
    }
  },
  "no": {
    "node": "Is it an arachnid?",
    "yes": {
      "node": "Is it a spider?",
      "yes": {
        "node": "Is it usually found in gardens?",
        "no": {
          "node": "Is it related to jumping?",
        }
      },
    },
    "no": {
      "node": "Is it a myriapod?",
      "yes": {
        "node": "Is it a centipede?",
      },
      "no": {
        "node": "Is it a crustacean?",
      }
    }
  }
}

plants_tree = {
  "node": "Is the a tree?",
  "yes": {
      "node": "Does it have needle-like leaves?",
      "yes": {
          "node": "Is it commonly found in colder climates?",
          "yes": {
              "node": "Does it have cones?",
          },
          "no": {
              "node": "Is it used for timber?",
          }
      },
      "no": {
          "node": "Does it have broad leaves?",
          "yes": {
              "node": "Is it a deciduous tree?",
              "yes": {
                  "node": "Does it produce fruit?",
                  "yes": {
                      "node": "Does it produce pome fruits?",
                      "no": {
                          "node": "Does it produce stone fruits?",
                          "yes": {
                              "node": "Does it produce small, red fruit?",
                          },
                      }
                  },
                  "no": {
                      "node": "Does it have a distinctive bark?",
                  }
              },
              "no": {
                  "node": "Is it an evergreen?",
                  "yes": {
                      "node": "Is it used for ornamental purposes?",
                  },
                  "no": {
                      "node": "Does it produce fruit or nut?",
                  }
              }
          },
          "no": {
              "node": "Is it a small tree or shrub?",
              "yes": {
                  "node": "Does it have showy flowers?",
              },
              "no": {
                  "node": "Does it produce a distinctive nut or seed?",
              }
          }
      }
  },
  "no": {
        "node": "Is it, or its parts are typically used for food?",
        "yes": {
            "node": "Is it a fruit-bearing plant?",
            "no": {
                "node": "Is it a root vegetable?",
            }
        },
        "no": {
            "node": "Does it have a woody stem?",
            "no": {
                "node": "Is it commonly grown indoors?",
            }
        }
    }
}


alive_tree = {
  "node": "Is it some kind of an animal?",
  "yes": animal_tree,
  "no": {
    "node": "Is it some kind of a plant, or its part?",
    "yes": plants_tree,
    "no": {
        "node": "Is it an insect, spider or something like that?",
        "yes": insects_tree,
        "no": {"node": "Is it a simple form of life?"},
    }
  }
}

furniture_tree = {
  "node": "Is it a type of seating?",
  "yes": {
    "node": "Is it some king of a chair?",
    "yes": {
      "node": "Does it have special features?",
      "yes": {
        "node": "Does it recline?",
        "no": {
          "node": "Does it usually have wheels?",
        }
      },
    },
    "no": {
      "node": "Is it some kind of a sofa?",
      "yes": {
        "node": "Is it convertible?",
        "no": {
          "node": "Is it modular?",
        }
      },
      "no": {
        "node": "Is it a bed?",
      }
    }
  },
  "no": {
    "node": "Is it a some kind of a table?",
    "yes": {
      "node": "Is it table designed for food consumption?",
      "no": {
        "node": "Is it a table for work?",
      }
    },
    "no": {
      "node": "Is it a type of storage?",
      "no": {
        "node": "Is it an accessory?",
      }
    }
  }
}

sport_tree = {
  "node": "Is it related to sports or outdoor activities?",
  "yes": {
    "node": "Is it related to team sports?",
    "yes": {
      "node": "Is it some kind of a ball?",
      "no": {
        "node": "Is it protective gear?",
        "yes": {
          "node": "Is it for the head?",
        },
        "no": {
          "node": "Is it for carrying equipment?",
        }
      }
    },
    "no": {
      "node": "Is it related to water activities?",
      "yes": {
        "node": "Is it a boat or something like that?",
        "yes": {
          "node": "Is it used for rowing?",
        },
        "no": {
          "node": "Is it used for swimming?",
        }
      },
      "no": {
        "node": "Is it related to individual sports?",
        "yes": {
          "node": "Is it for cycling?",
        },
        "no": {
          "node": "Is it related to winter sports?",
        }
      }
    }
  },
  "no": {
    "node": "Is it related to art or crafts?",
    "yes": {
      "node": "Is it used for painting?",
      "yes": {
        "node": "Is it a type of paint?",
        "no": {
          "node": "Is it a tool for painting?",
        }
      },
      "no": {
        "node": "Is it related to music?",
        "yes": {
          "node": "Is it a musical instrument?",
        },
        "no": {
          "node": "Is it related to crafts?",
        }
      }
    },
    "no": {
      "node": "Is it related to photography?",
      "yes": {
        "node": "Is it a camera?",
        "no": {
          "node": "Is it a camera accessory?",
        }
      },
      "no": {
        "node": "Is it related to science or technology?",
        "yes": {
          "node": "Does it have a lense?",
        },
        "no": {
          "node": "Is it related to outdoor exploration?",
        }
      }
    }
  }
}

place_tree = {
    "node": "Is it a country?",
    "yes": {
        "node": "Is it located in Americas?",
        "no": {
            "node": "Is it, or its part, located in Europe?",
            "no": {
                "node": "Is it, or its part, located in Asia?",
            }
        }
    },
    "no": {
        "node": "Is it a city, town?",
        "no": {
            "node": """Is it a general name for multiple places like "school", "square", "bridge", "forest"?""",
            "no": {"node": "Is it a man-made?"},
        }
    },
}

kitchen_tree = {
  "node": "Is it used for storing or containing food?",
  "no": {
    "node": "Does it have a handle?",
    "yes": {
      "node": "Is the object typically used for handling liquids?",
      "yes": {
        "node": "Is it some kind of a cup, glass, bottle?"
      },
      "no": {
        "node": "Is the object mainly used for cutting?",
      }
    },
    "no": {
      "node": "Is it primarily used for cleaning or maintenance?",
      "no": {
        "node": "Is it primarily used for storage or organization?",
      }
    }
  }
}

bathroom_tree = {
  "node": "Is it something primarily related to personal hygiene or grooming?",
  "yes": {
    "node": "Is it something primarily used for hair care?",
    "no": {
      "node": "Is it something that is used directly on the skin?",
      } 
  }
}

wearables_tree = {
    "node": "Is it an accessory?",
    "yes": {
        "node": "Is it some kind of a jewelry?",
    },
    "no" : {
        "node": "Is it an article of clothing typically worn on the upper body?"
    }
}


decision_tree = {
  "node": "Is it a place, town, city, landmark?",
  "no": {
    "node": "Is it something man-made?",
    "yes": {
      "node": "Is it electrical?",
      "yes": electronic_tree,
      "no": {
        "node": "Is it something people eat or drink as a food or supplements?",
        "yes": food_tree,
        "no": {
          "node": "Is it typically found indoors?",
          "yes": {
            "node": "Is it furniture?",
            "yes": furniture_tree,
            "no": {
              "node": "Is it typically found in kitchen?",
              "yes": kitchen_tree,
              "no": {
                "node": "Is it typically found in a bathroom?",
                "yes": bathroom_tree,
                "no": {
                  "node": "Is it something that is worn or related to clothing, personal accessories?",
                  "yes": wearables_tree,
                }
              }
            }
          },
          "no": {
            "node": "Is it connected with hobby, sport or some kind of recreational activity?",
            "yes": sport_tree,
            "no": {
              "node": "Is it a tool?",
              "yes": tool_tree,
              "no": {
                "node": "Is it a decoration?",
              }
            }
          }
        }
      }
    },
    "no": {
      "node": "Is it something alive in terms of biology?",
      "yes": alive_tree,
    }
  },
  "yes": place_tree,
}
