$word = $modx->getOption('word', $scriptProperties, '');
[[ my_snippet? word=`hello!` ]]
<?php
echo $word;
$word = $modx->getOption('word', $scriptProperties, '');
$word; // Hello
$scriptProperties['word']; // Hello
$modx->getOption('word', $scriptProperties, ''); // Hello