Worder! - Word your checks to be readable and understandable

To be clear, this was made in 30 minutes as a fun project, and also DO NOT USE THIS MODULE FOR EVERY CHECK IN YOUR GAME !!! Instead, use it whenever you need real readability of your checks for people who dont code that much in luau.

Hello today im showing you a worder module. It allows you to check values like this.

local object = Worder.new(1) -- example number
object.validate.to.be.zero() --> false
object.validate.to.be.non.zero() --> true
local object = Worder.new("examplestring")
object.is.matching("examplestring") --> true
object.is.matching("notexamplestring") --> false
object.is.a.type("string") --> true
local object = Worder.new({x = 1, y = 2})
object.validate.to.have.keys("x", "y") --> true
object.validate.to.have.key("z") --> false
object.validate.to.have.value(2) --> true

Pretty cool right? I found this type of syntax in some dev module from roblox, and thought this would be pretty fun to make.

Grab the module here:
https://create.roblox.com/store/asset/103859225038385/Worder

Is this just a t module wrapper? To be honest, it would probably make much more sense to just use t, it’s way more understandable when you check something by doing CheckValues(v), or standard v == 0, instead of expanding it to a separate single-use object.

As i said here, i forgot where this came from:

add this function:
object.is.a.sigma.and.skibidi.and.has.W.rizz.plus.eat.a.cat.or.object.is.a.nonsigma.and.has.L.rizz.do.idk.aeh.plus.im.bored.print

1 Like

oh my god why was this :gem_stone:gem :gem_stone: hidden?!?!

ask devforum moderators who love to kill all posts that feature lua vms

1 Like

mods are so mean for hiding that :enraged_face::enraged_face:

This has no practical use but cool fun project none-the-less, reminds me of Roblox TestEz/spec files

It was jest testing library that has a system like this

There’s also an official testing framework from Roblox: TestEZ Documentation, It’s not just jest, its just Behavior-Driven Development.