{"id":"detect-capital-no-empty-guard","text":"detectCapitalUse accesses word[0] without a length check and will raise IndexError on empty input, relying on LeetCode's guarantee that len(word) >= 1.","truth_value":"IN","source":"entries/2026/06/06/detect-capital-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"detect-capital-no-empty-guard","truth_value":"IN","reason":"premise"}]}}