Index

SearchWord

MMO.core · 1 symbol · generated 30 Sep 2026

class

SearchWord

HTMLSearch.js:18
class MMO.core.SearchWord
Namespace
MMO.core

Index

constructor(word, node, pos)
score(word)Score how well a searched word matches this one: the characters are looked up in order, and a run of consecutive hits weighs more than the same hits scattered.

Methods2

constructor(word, node, pos)

HTMLSearch.js:19
constructor(word, node = null, pos = 0)
word
node = null
pos = 0

score(word)

HTMLSearch.js:31

Score how well a searched word matches this one: the characters are looked up in order, and a run of consecutive hits weighs more than the same hits scattered.

score(word)
wordstringthe searched word, normalised
returns[number, Array<number>]the score in [0,1] and the matching offsets