function extractAliases( ns ) {
	var matches;
	var jsdoc;
	var title;
	var name;
	var tags;
	var out;
	var pkg;
	var i;
	var j;

	out = {};
	matches = ns.match( RE_JSDOC );
	for ( i = 0; i < matches.length; i++ ) {
		name = null;
		pkg = null;
		jsdoc = doctrine.parse( matches[ i ], DOPTS );
		tags = jsdoc.tags;
		debug( 'JSDoc tags: %s', JSON.stringify( tags ) );
		for ( j = 0; j < tags.length; j++ ) {
			title = tags[ j ].title;
			if ( title === 'name' ) {
				name = tags[ j ].name;
			}
			else if ( title === 'see' ) {
				pkg = tags[ j ].description.match( RE_LINK )[ 1 ];
			}
		}
		if ( pkg && name ) {
			out[ pkg ] = name;
		}
	}
	return out;
}
Retrieves aliases from a namespace index file.

@private
@param {string} ns - namespace code string
@returns {Object} table mapping package names to aliases