// // KBSuggestionEngine.h // CustomKeyboard // #import NS_ASSUME_NONNULL_BEGIN /// Simple local suggestion engine (prefix match + lightweight ranking). @interface KBSuggestionEngine : NSObject + (instancetype)shared; /// Returns suggestions for prefix (lowercase expected), limited by count. - (NSArray *)suggestionsForPrefix:(NSString *)prefix limit:(NSUInteger)limit; /// Record a selection to slightly boost ranking next time. - (void)recordSelection:(NSString *)word; @end NS_ASSUME_NONNULL_END