Files
Arcrun/cypher-executor
Leo 4fd2d3ba6c fix(cypher-executor): FOREACH iter plural 變體 (entity → entities)
舊 getIterableFromContext 只試 'key+s',遇 irregular plural 不命中:
  entity + s = entitys ≠ entities (Claude 真實 output)

加變體:
  - key + 's'                       (paragraph → paragraphs)
  - key.replace(/y$/, 'ies')        (entity → entities)
  - key.replace(/(s|x|z|ch|sh)$/, '$1es')  (box → boxes)
  - key (singular fallback)

對應 mira wiki_synthesis V3 multi-entity 升級需求。
2026-05-17 10:34:12 +08:00
..