Get and set document metadata.

title_(document, ...)

# S3 method for document
title_(document, ...)

# S3 method for JuliaObject
title_(document, ...)

# S3 method for documents
title_(document, ...)

language_(document, ...)

# S3 method for document
language_(document, ...)

# S3 method for documents
language_(document, ...)

# S3 method for JuliaObject
language_(document, ...)

author_(document, ...)

# S3 method for document
author_(document, ...)

# S3 method for documents
author_(document, ...)

# S3 method for JuliaObject
author_(document, ...)

timestamp_(document, ...)

# S3 method for document
timestamp_(document, ...)

# S3 method for documents
timestamp_(document, ...)

# S3 method for JuliaObject
timestamp_(document, ...)

Arguments

document

A document as returned by the *_document family of functions, i.e.: string_document.

...

A character string to set.

Details

Note that the value (three dots) for the language function is taken from the Julia Language package.

Examples

# NOT RUN {
init_textanalysis()

# build document
doc <- string_document("This is a document.")

# get and et metadata
title_(doc) # get
title_(doc, "Hello World") # set
language_(doc, "Spanish") # from Language pack
# }