dart_naver_papago 0.0.1 copy "dart_naver_papago: ^0.0.1" to clipboard
dart_naver_papago: ^0.0.1 copied to clipboard

A unofficial package for using Naver Papago translation, language detection, romanization api.

dart_naver_papago #

A unofficial packages provide easy way to use Naver apis that do not require login in Dart language.

  • Naver Papago api
    • Translation
    • Language detection
    • Romanization

Added more soon

Requirements #

Here is what you need to use the Dart SDK:

  • Dart 2.19.0 or higher

Exmaple #

First, generate Naver client id and client secret.

Initialize NaverWithoutLoginApi with your api key.

NaverWithoutLoginApi.init(clientId: clientId, clientSecret: clientSecret)

Use APIname.queryFunction form to call query function.

You can check available api.

Papago api #

/// Translate Korean to English
///
/// Returns PapagoResponseMessage
final result = await PapagoTranslation.getTranslation(LangCode.ko, LangCode.en, "안녕하세요");
print(result.getText); // Print Hello

/// Detect language code
///
/// Returns LanguageDetectionResponse
final result = await LanguageDetection.detectLanguage("안녕하세요");
print(result.langCode); // Print LangCode.ko

/// Name romanization
///
/// Returns RomanizationResponse
final result = await Romanization.romanization("강형욱");

pub.dev #

Documentation comment will be added gradually 😀

4
likes
0
pub points
0%
popularity

Publisher

verified publishercoaspe.com

A unofficial package for using Naver Papago translation, language detection, romanization api.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

dart_naver_without_login_common, http, json_annotation, plugin_platform_interface

More

Packages that depend on dart_naver_papago