       score: i[1]
 
 exports.Database = Database
-exports.Profile = Profile+exports.Profile = Profile

  grams


class Database

  constructor: (@_={}) ->
    @ngramSize = 3
    @size = 0

  learn: (tagged, b) =>
    if b?
      _tagged = {}
      _tagged["#{tagged}"] = b
      tagged = _tagged

    for txt, keywords of tagged
      for n, ngram of ngramize txt, @ngramSize
        #console.log "n: #{n}, ngram: #{ngram}"

# STANDARD NODE LIBRARY MODULES
{inspect} = require 'util'
fs        = require 'fs'

# THIRD PARTIES MODULES
deck      = require 'deck'

# HELPERS
pretty = (obj) -> "#{inspect obj, no, 20, yes}" # prettify an object to colorful string
wait = (t) -> (f) -> setTimeout f, t            # just an alias to setTimeout


#################################
