roomy

Parse Japanese real estate room descriptions like 1LDK into objects

Roomy

Parse Japanese real estate room descriptions like 1LDK into objects.

With roomy, you can parse strings like 1LDK into objects like this:

{
  "rooms": 1,
  "living_room": true,
  "dining_room": true,
  "kitchen": true
}

You can also turn them back into their string representation!

$ npm install roomy

OR

$ git clone git://github.com/deoxxa/roomy.git node_modules/roomy

#!/usr/bin/env node
 
var roomy = require("roomy");
 
var object = roomy.parse("1LDK");
 
console.log(object);
 
var string = roomy.generate(object);
 
console.log(string);

3-clause BSD. A copy is included with the source.