Code Monkey home page Code Monkey logo

owoify_rb's Introduction

owoify_rb

Turning your worst nightmare into a Ruby gem.

This is a Ruby port of mohan-cao's owoify-js, which will help you turn any string into nonsensical babyspeak similar to LeafySweet's infamous Chrome extension.

Just like my other Owoify ports, three levels of owoness are available:

  1. owo (default): The most vanilla one.
  2. uwu: The moderate one.
  3. uvu: Litewawwy unweadabwal.

Please refer to the original owoify-js repository for more information.

Seriously, if you have seen my other ports, you probably have already known the details.

Reason for development

Because RubyGems.org doesn't have any owoify package. And since I have already ported it to several languages, I might as well just keep porting it.

Install instructions

Add it to your Gemfile file:

gem 'owoify_rb', '~> 1.1.0'

Or run this command in your command line:

gem install owoify_rb

Usage

owoify_rb is implemented as a function inside the module Owoify. That means you don't need to create an instance of any class; instead, just call the method owoify with the module name.

require 'owoify_rb'

puts Owoify.owoify 'This is the string to owo! Kinda cute isn\'t it?'
puts Owoify.owoify('This is the string to owo! Kinda cute isn\'t it?', 'uvu')

# Output:
# This is teh stwing two owo! Kinda cute isn't it?
# fwis is teh stwing two owowowo (*^.^*) Kinda cute isn't it?

Disclaimer

As usual, I'm writing this package for both practicing and bots' needs. Performance is NOT guaranteed.

That being said, all regular expressions are declared beforehand rather than being declared inside a function. That should be able to avoid the performance cost of building regular expressions every time the method is called.

See also

  • owoify-js - The original owoify-js repository.
  • Owoify.Net - The C# port of Owoify written by me.
  • Owoify++ - The C++ header-only port of Owoify written by me.
  • owoify_rs - The Rust port of Owoify written by me.
  • owoify-py - The Python port of Owoify written by me.
  • owoify_dart - The Dart port of Owoify written by me.

owoify_rb's People

Contributors

deadshot465 avatar

Stargazers

Sam Wight avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.