Game Maker Firebase ML Kit – Language Identifier Extension

Game Maker Firebase ML Kit – Language Identifier extension allows you to identify and detect a sentence/word/context’s language by using Google’s Machine Learning Kit.

This is useful for detecting player’s language and serve them, or detecting a player’s language and serve them personalized translations via Game Maker Firebase ML Kit – Translate Extension.

Setup Firebase Tools for Game Maker Studio

Get Firebase Natural Languages Extension (Must be included)

DOCUMENTATION

firebase_ml_identifier_debug_mode(True/False debugMode);
Description
: Enables/Disables debug mode for the language identifier extension.
Returns : N/A

firebase_ml_identifier_init();
Description
: Initializes the Language identifier Extension.
Returns : N/A

firebase_ml_identifier_identify_language(String text);
Description
: Attemps to identify the provided text’s language. It will return the most possible result via Social Async Event.
Returns : A Social Async Event
“category” = “ml_identifier_identify” (String)
“status” = true or false (Boolean)
“result” = Language code

firebase_ml_identifier_identify_language("En sevdi─čin yemek nedir?");

In Social Async Event

var cat = async_load[? "category"];
switch(cat)
{
	case "ml_identifier_identify":
	var status = async_load[? "status"];
	
	if (status==1) {
		//Yeap it found..
		var result = async_load[? "result"];
		//result is a language code for the language found (like pl, tr, en etc.)
	}
	break;
}
GET THE EXTENSION
Share

Marty

Truely speaking, I don't know what am I doing most of the time.

Leave a Reply