brainy/src/importers
David Snelling cef6b5ab33 feat: add sheet name type classification for Excel imports
Add intelligent type inference based on Excel sheet names to improve entity classification during import.

Features:
- Added inferTypeFromSheetName() method with pattern matching for common sheet names
- Sheet names like "Characters", "People" → NounType.Person
- Sheet names like "Places", "Locations" → NounType.Location
- Sheet names like "Terms", "Concepts" → NounType.Concept
- And more patterns for Organization, Event, Product, Project types

Type Determination Priority:
1. Explicit "Type" column (highest priority - user specified)
2. Sheet name inference (NEW - semantic hint from Excel structure)
3. AI extraction from related entities
4. Default to Thing (fallback)

Benefits:
- Improves classification for structured Excel glossaries and databases
- Zero breaking changes - only adds intelligence
- Graceful fallback if no pattern matches
- Helps Workshop team and similar use cases

Impact:
- Workshop team's 200 misclassified entities will now be correctly typed
- Characters sheet → person (81 entities)
- Places sheet → location (57 entities)
- Terms sheet → concept (53 entities)
- Humans sheet → person (2 entities)
- Non-Human Peoples sheet → organization (7 entities)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-23 13:50:02 -07:00
..
index.ts feat: add unified import system with auto-detection and dual storage 2025-10-08 16:55:30 -07:00
SmartCSVImporter.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
SmartDOCXImporter.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
SmartExcelImporter.ts feat: add sheet name type classification for Excel imports 2025-10-23 13:50:02 -07:00
SmartImportOrchestrator.ts feat: add real-time progress callbacks for relationship building phase 2025-10-16 12:08:46 -07:00
SmartJSONImporter.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
SmartMarkdownImporter.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
SmartPDFImporter.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
SmartYAMLImporter.ts feat: implement progressive flush intervals for streaming imports 2025-10-22 17:36:27 -07:00
VFSStructureGenerator.ts feat: add confidence/weight to Entity and flatten Result fields for convenient access 2025-10-23 12:19:50 -07:00