lib/parse-japanese-basic.js
function ParseJapaneseBasic (file, options) {
  var offset = 0
  var line = 1
  var column = 1
  var position

  if (!(this instanceof ParseJapaneseBasic)) {
    return new ParseJapaneseBasic(file, options)
  }

  if (file && file.message) {
    this.file = file
  } else {
    options = file
  }

  position = options && options.position

  if (position !== null && position !== undefined) {
    this.position = Boolean(position)
  }

  this.offset = offset
  this.line = line
  this.column = column
}
function ParseJapaneseBasic (file, options) {
  var offset = 0
  var line = 1
  var column = 1
  var position

  if (!(this instanceof ParseJapaneseBasic)) {
    return new ParseJapaneseBasic(file, options)
  }

  if (file && file.message) {
    this.file = file
  } else {
    options = file
  }

  position = options && options.position

  if (position !== null && position !== undefined) {
    this.position = Boolean(position)
  }

  this.offset = offset
  this.line = line
  this.column = column
}
function ParseJapaneseBasic ( file , options ) { var offset = 0 var line = 1 var column = 1 var position if ( ! ( this instanceof ParseJapaneseBasic ) ) { return new ParseJapaneseBasic ( file , options ) } if ( file && file . message ) { this . file = file } else { options = file } position = options && options . position if ( position !== null && position !== undefined ) { this . position = Boolean ( position ) } this . offset = offset this . line = line this . column = column }
Transform Japanese natural language into
an NLCST-tree.

@param {VFile?} file - Virtual file.
@param {Object?} options - Configuration.
@constructor {ParseJapanese}
Transform Japanese natural language into an NLCST - tree .