Latest 0.0.4
Homepage https://github.com/carloskekwa/Custom-Keyboard-Prediction
License MIT
Platforms ios 9.0
Authors

Custom-Keyboard-Prediction

Description

PredictionForKeybpard is the best iOS Library that make Next Word Prediction easy for Custom iOS Keyboard.
Since Apple does not support and does not provide any API for that, we decided to make a library that does that. Just Enjoy and buy me a coffee one day!

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

Custom-Keyboard-Prediction is available through CocoaPods. To install
it, simply add the following line to your Podfile:

     pod 'PredictionForKeyboard'
     pod install

App Groups

Enable App Groups.
Let the groups name be ‘group.com.code.testingpredictionframework’. Otherwise the library will crash.

alt text

Implementation

Mainly you will use this Library in a Custom Keyboard Prediction.
So to do that :

Import the Framework this way.

    #import <PredictionForKeyboard/predictWord.h>

Wherever u want to predict. init
First time initialization may take up to one minute.

    @implementation
    predictWord *predict; 
    -(void)viewDidLoad{
     predictWord *predict = [[predictWord alloc] init];
    [predict initRealmWords:^(BOOL success) { 

    }];
    }

Array of next word prediction after initRealmWords Finish

    [predict getPrediction:@"how are you " completion:^(NSArray *suggestions, UIColor *textColor) {
        NSLog(@"%@:",suggestions); 
    }];

Array of word List Prediction

      [predict getPrediction:@"how are you" completion:^(NSArray *suggestions, UIColor *textColor) {
        NSLog(@"%@:",suggestions); 
     }];

No space on the right will give u word prediction and with a space will give the next word prediction.
Just Give it any syntaxe and it will find the Prediction for it. The Array returned is mainly an array with many words ranked from the highest to the lowest.

Author

carlos kekwa, [email protected]

License

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

Latest podspec

{
    "name": "PredictionForKeyboard",
    "version": "0.0.4",
    "summary": "Custom-Keyboard-Prediction.",
    "description": "PredictionForKeybpard is the best iOS Library that make Next Word Prediction easy for Custom iOS Keyboard. Since Apple does not support and does not provide any API for that, we decided to make a library that does that. Just Enjoy and buy me a coffee one day!",
    "homepage": "https://github.com/carloskekwa/Custom-Keyboard-Prediction",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "carloskekwa": "[email protected]"
    },
    "source": {
        "http": "https://firebasestorage.googleapis.com/v0/b/full-keyboard.appspot.com/o/Archive.zip?alt=media&token=e02df3a5-f3eb-4f4f-b49f-58ee726d4869"
    },
    "platforms": {
        "ios": "9.0"
    },
    "vendored_frameworks": "PredictionForKeyboard.framework",
    "public_header_files": "PredictionForKeyboard.framework/Headers/*.h",
    "source_files": "PredictionForKeyboard.framework/Headers/*.h"
}

Pin It on Pinterest

Share This