# US 2021/0334299 A1 · Language detection of user input text for online gaming

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0334299 A1
- Document ID: US20210334299A1
- Status: Published application
- Kind: A1
- Application number: 16/858,467
- Filed: 2020-04-24
- Published: 2021-10-28
- Earliest claimed: 2020-04-24
- Assignees: Roblox Corporation
- Applicants: Roblox Corporation
- Inventors: Nikolaus Sonntag; Aswath Manoharan; I-Wu Lu; Eric Holmdahl Holmdahl; Madhok Shivaratre
- Web page: https://patentgrep.com/patent/US20210334299A1

## CPC

- G06F 16/3334: {Selection or weighting of terms from queries, including natural language queries}
- G06F 16/3329: Natural language query formulation
- G06F 16/335: Filtering based on additional data, e.g. user or group profiles (filtering in web context G06F16/9535, G06F16/9536)
- G06F 40/263: Language identification
- G06F 40/56: Natural language generation
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A user query, such as a user query processed by the online game system, is provided as input into a trained machine learning model. The machine learning model predicts candidate languages of the user query and outputs language confidence scores for the candidate languages. The user query is also matched with stored query data associated with game information in individual language databases for the respective candidate languages. A match scores may be determined based on a certainty of the respective response matches. The match scores and the language confidence scores may be weighted to determine a weighted score. The weighted scores of the response matches are applied to decide which game information retrieved from the identified database is used in forming a response of search results to the user.

## Claims

### Claim 1

A method of language-based searching for a user query for online games, wherein the method comprises:
receiving the user query;
separating the user query into a plurality of n-grams;
identifying at least one candidate language of the user query, by applying a machine learning model to the plurality of n-grams of the user query, wherein the machine learning model is trained with at least one multilingual text corpus and game-related data;
determining, by applying the machine learning model, a respective confidence score for each of the at least one candidate language;
identifying one or more response matches to the user query in language-specific game databases associated with each of the at least one candidate language that has a confidence score meeting a confidence threshold;
determining a respective match score for each of the one or more response matches; and
providing a response of search results including game information associated with particular response matches, based, at least in part, on respective weighted scores of at least the respective confidence score and the respective match score.

### Claim 2 (depends on 1)

The method of claim 1, wherein providing the response includes ranking the response matches according to the respective weighted scores, and the method further comprises: generating the search results based, at least in part, on the one or mom response matches that meet a ranking threshold.

### Claim 3 (depends on 2)

The method of claim 2, wherein generating the search results is further based on user profile information associated with a user of the user query.

### Claim 4 (depends on 1)

The method of claim 1, wherein the game information includes connect information for online games and the response includes one or more user interface elements that, when activated by a user, navigates to digital information associated with playing a respective one of the online games.

### Claim 5 (depends on 1)

The method of claim 1, wherein determining the respective confidence score includes determining, by the machine learning model, one or more segments of the plurality of n-grams that are relevant to the at least one candidate language.

### Claim 6 (depends on 1)

The method of claim 1, wherein the at least one candidate language includes an unidentified language and the language-specific game databases include a database associated with unknown languages.

### Claim 7

A method of training a machine learning model to identify candidate languages of a user query for online games, wherein the method comprises:
receiving text data comprising first text data, associated language labels for the first text data and second text data unlabeled for languages;
determining associated language labels for the second text data, based on a threshold number of a plurality of non-specific language detectors identifying at least one language;
creating training text data by separating the text data into n-grams; and
training the machine learning model to generate at least one candidate language identifier of the user query and a respective language confidence score, wherein the training comprises:
training with the training text data without the associated language labels to obtain current predicted language labels by the machine learning model; and
retraining the machine learning model with discrepancy information between the current predicted language labels and the associated language labels, to update the current predicted language labels.

### Claim 8 (depends on 7)

The method of claim 7, wherein the training further comprises iteratively repeating the retraining until the discrepancy information meets a threshold of accuracy.

### Claim 9 (depends on 7)

The method of claim 7, wherein creating the training text data further includes splitting word strings of the text data having a length greater than an upper threshold length, into random word lengths of a predetermined length.

### Claim 10 (depends on 7)

The method of claim 7, wherein creating the training text data further includes aggregating work strings of text data having a length shorter than a low threshold length, with related text to create tended strings of words.

### Claim 11 (depends on 7)

The method of claim 7, wherein creating the training txt data is by determining the n-grams that meet a commonality threshold across languages and within languages.

### Claim 12 (depends on 7)

The method of claim 7, wherein the n-grams include at least one of: one character, two characters, or three characters.

### Claim 13 (depends on 7)

The method of claim 7, wherein the text data includes at least one collection of game-related data that includes at least one of game titles, chat texts, game source data, or slang terms.

### Claim 14

A system comprising a computing device for detecting language of a user query for online games, wherein the computing device comprises:
one or more processors; and
logic encoded in one or more tangible media for execution by the one or more processors and when executed operable to perform operations comprising:
receiving the user query;
separating the user query into a plurality of n-grams;
identifying at least one candidate language of the user query, by applying a machine learning model to the plurality of n-grams, wherein the machine learning model is trained with at least one multilingual text corpus and game-related data,
determining, by applying the machine learning model, a respective confidence score for each of the at least one candidate language;
finding one or more response matches to the user quay in language-specific game databases associated with each of the at least one candidate language that has a confidence score meeting a confidence threshold; and
determining a respective match score for each of the one or mom response matches; and providing search results including game information associated with particular response matches, based, at least in part, on respective weighted scores of at least the respective confidence score and the respective match score.

### Claim 15 (depends on 14)

The system of claim 14, wherein providing the response includes ranking the response matches according to the respective weighted scores, and the operations further comprise: generating the search results based, at least in part, on the one or more response matches that meet a ranking threshold.

### Claim 16 (depends on 15)

The system of claim 15, wherein the ranking threshold includes at least one of a top pre-defined number of response matches or response matches with a weighted score over a predefined value.

### Claim 17 (depends on 15)

The system of claim 15, wherein generating the search results is further based on user profile information associated with a user of the user query.

### Claim 18 (depends on 14)

The system of claim 14, wherein the game information includes connect information for online games and the response includes display elements to navigate to a digital associated with playing a respective one of the online games.

### Claim 19 (depends on 14)

The system of claim 14, wherein determining the respective confidence score includes determining, by the machine learning model, one or more segments of the plurality of n-grams that are relevant to the at least one candidate language.

### Claim 20 (depends on 14)

The system of claim 14, wherein the at least one candidate language includes an unidentified language and the language-specific game databases include a database associated with unknown languages.
