Skip to content

Socret360/akara-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💡 AkaraIOS: Multi-Language Word Suggestions Toolkit for iOS

Platform Swift CocoaPods Compatible License

The AKARA (អក្ខរា) project aims to give developers the power to easily add multi-language word suggestions support to their applications.

AkaraIOS offers this exciting feature to iOS developers.

Features

  • Word Suggestion

Language Support

  • Khmer
  • English

Road Maps

  • Next Word Suggestion for English
  • Personalize Suggestions based on NGram
  • Support for Other Languages. (Planing for Thai and Chinese)

Requirements

  • iOS 11.0+
  • Xcode 10.0+
  • Swift 4+

Installation

CocoaPods

AkaraIOS is available through CocoaPods. To integrate AkaraIOS into your project, simply add the following line to your Podfile:

use_frameworks!
pod 'AkaraIOS'

Usage

let akara = Akara()
DispatchQueue.global(qos: .background).async {
    let sentence = "ឯងនេះមួយយប់ៗដេកខ្វល់រឿងអនាគតមិនដឹងធ្វើអីចិញ្ចឹមខ្លួនមួយនេះរស់"
    akara.suggest(sentence: sentence) { (suggestionType, suggestions, sequences, words) -> Void in
        DispatchQueue.main.async {
            print("input: \(sentence)")
            print("sequences: \(sequences)")
            print("words: \(words)")
            print("suggestions: \(suggestions.suffix(3))")
            print("suggestionType: \(suggestionType)")
            print("======")
        }
    }
}
        

Want to Help?

Code contributions are welcome for this project and other AKARA related projects.

Project Status URL
akara-android Active https://github.com/Socret360/akara-android
akara-ios Active https://github.com/Socret360/akara-ios
akara-python Active https://github.com/Socret360/akara-python
akara-web TBC
akara-flutter TBC

Credits

Sequence Breaker:

WordBreaker:

Auto Completion

Spell Checker / Corrections

Next Word Suggestions

  • Khmer: Deep Learning (LSTM) trained by @ssokhavirith.
  • English: N/A

License

AkaraIOS is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published