snes-disassembler
Version:
A Super Nintendo (SNES) ROM disassembler for 65816 assembly
74 lines • 2.43 kB
TypeScript
/**
* AI-Powered Intelligent Naming Suggestions
*
* Generates contextually appropriate names for SNES assets using:
* - Pattern recognition results
* - SNES-specific naming conventions
* - Game context analysis
* - Historical naming patterns from well-known games
*/
import { AIConfigManager } from './ai-config';
import { GraphicsClassification, AudioClassification, TextClassification } from './ai-pattern-recognition';
export interface NamingSuggestion {
/** Suggested name */
name: string;
/** Confidence in this suggestion (0.0-1.0) */
confidence: number;
/** Explanation of why this name was suggested */
reasoning: string;
/** Category of the suggestion */
category: 'sprite' | 'background' | 'audio' | 'text' | 'code' | 'data';
/** Alternative names */
alternatives: string[];
/** SNES-specific conventions used */
conventions?: string[];
}
export interface AssetContext {
/** ROM offset where asset was found */
offset: number;
/** Size of the asset */
size: number;
/** Bank where asset is located */
bank: number;
/** Surrounding context (nearby assets) */
nearbyAssets?: AssetContext[];
/** Game identification if available */
gameId?: string;
/** Asset classification results */
classification?: {
graphics?: GraphicsClassification;
audio?: AudioClassification;
text?: TextClassification;
};
}
/**
* AI-Enhanced Naming Suggestion Engine
*/
export declare class AINameSuggester {
private configManager;
private snesConventions;
private gameDatabase;
constructor(configManager: AIConfigManager);
/**
* Generate intelligent naming suggestions for an asset
*/
suggestNames(context: AssetContext): Promise<NamingSuggestion[]>;
/**
* Generate contextual names using AI pattern recognition
*/
private generateContextualSuggestions;
private generateGraphicsName;
private generateAudioName;
private generateTextName;
private generateGraphicsAlternatives;
private generateAudioAlternatives;
private generateTextAlternatives;
private applySNESConventions;
private applyCustomPatterns;
private applyPattern;
private applyGameSpecificNaming;
private generateBasicSuggestions;
private inferCategoryFromContext;
private rankAndDeduplicate;
}
//# sourceMappingURL=ai-naming-suggestions.d.ts.map