package dictionary import ( "context" "errors" "github.com/dusiburg/fancy-api/internal/model" ) var ( ErrWordNotFound = errors.New("word not found") ErrUnsupportedLanguage = errors.New("unsupported language") ) type Provider interface { Lookup(ctx context.Context, word string, lang model.Language) (*model.DictionaryResult, error) }