diff --git a/nselib/nmap.luadoc b/nselib/nmap.luadoc
index 840f6982f..09a6b9730 100644
--- a/nselib/nmap.luadoc
+++ b/nselib/nmap.luadoc
@@ -22,6 +22,27 @@ function debugging()
-- @return True if Nmap was compiled with SSL support, false otherwise.
function have_ssl()
+--- Returns the version intensity as a non-negative integer.
+--
+-- The version intensity can be set for all version probes with the
+-- --version-intensity option. The intensity for version scripts
+-- can be overridden with the script-intensity script argument.
+-- If overridden, nmap.version_intensity() returns the overridden value
+-- automatically. If neither --version-intensity nor the script
+-- argument script-intensity are used, the version intensity
+-- defaults to 7.
+-- When a version script is given by name with the --script
+-- option, as opposed to being selected automatically due to -sV,
+-- its version intensity is automatically set to maximum (9).
+-- @return The version intensity.
+-- @usage
+-- portrule = function(host, port)
+-- return ...
+-- ...
+-- and nmap.version_intensity() >= 7
+-- end
+function version_intensity()
+
--- Returns the verbosity level as a non-negative integer.
--
-- The verbosity level can be set with the -v option. When